Giter Site home page Giter Site logo

sapb1dialogs's Introduction

SAPB1Dialogs

SAP Business One dialog form oluşturma kütüphanesi

Örnek Dialog Oluşturma Kodu

  namespace SAPB1Dialogs.Demo.Dialogs
  {
      public class TestDialog : AbstractInputDialog
      {
          public TestDialog()
          {
              NewInput<ShortEditTextInput>()
                  .SetLabelCaption("Input Value1")
                  .SetDataLength(250);

              NewInput<ShortEditTextInput>()
                  .SetLabelCaption("Input Value2")
                  .SetDataLength(250);
          }
      }
  }

Kullanım Kodu

    private void Button0_ClickBefore(object sboObject, SAPbouiCOM.SBOItemEventArg pVal, out bool BubbleEvent)
    {
        BubbleEvent = true;
        TestDialog Dialog = new TestDialog();

        Dialog.DoOk(o =>
        {
            (this.UIAPIRawForm.Items.Item("Item_2").Specific as SAPbouiCOM.EditText).Value = (o.RawForm.Items.Item("Input1").Specific as SAPbouiCOM.EditText).Value;
            (this.UIAPIRawForm.Items.Item("Item_1").Specific as SAPbouiCOM.EditText).Value = (o.RawForm.Items.Item("Input2").Specific as SAPbouiCOM.EditText).Value;
            o.RawForm.Close();
        });

        Dialog.DoCancel(o =>
        {
            o.RawForm.Close();
        });

        Dialog.ShowModal();

    }

SAPB1Dialogs1.gif

Daha Farklı Veri Girişleri için Örnek Dialog Kodu

  namespace SAPB1Dialogs.Demo.Dialogs
  {
      public class TestDialog2 : AbstractInputDialog
      {
          public TestDialog2()
          {
              NewInput<ShortEditTextInput>()
                  .SetLabelCaption("Input Value1")
                  .SetDataLength(250);

              NewInput<PriceEditTextInput>()
                  .SetLabelCaption("Input Value2")
                  .SetDataLength(25);

              var Values = new Dictionary<string, string>()
              {
                  {"1", "Tedarikciye Ciro" },
                  {"2", "Bankaya Çıkış/Ibraz"},
                  {"3", "Kırdırmaya Çıkış"},
                  {"4", "Müşteriye İade"},
                  {"5", "Bankada Karşılıksız Müşteriye İade"},
                  {"6", "Ciro İptal"},
                  {"7", "Cirodan Karşılıksıza İade"},
                  {"8", "Bankada Tahsil Edildi"},
                  {"9", "Ödeme(Kırdırma)"},
                  {"10", "Bankadan İade"},
                  {"11", "Bankadan Karşılıksıza İade"},
                  {"12", "Kırdırım İptal"},
                  {"13", "Kırdırım Karşılıksız"},
                  {"14", "Tahsile Verilenin Geri Alınması"},
                  { "15", "Elden Tahsil Edilme"},
              };

              NewInput<ComboBoxInput>()
                  .SetValidValues(Values)
                  .SetLabelCaption("Input Value3")
                  .SetDataLength(50);

              NewInput<DateEditTextInput>()
                  .SetLabelCaption("Input Value4")
                  .SetDataLength(250);

              NewInput<QuantityEditTextInput>()
                  .SetLabelCaption("Input Value5")
                  .SetDataLength(25);
          }
      }
  }

Kullanım Kodu

  private void Button0_ClickBefore(object sboObject, SAPbouiCOM.SBOItemEventArg pVal, out bool BubbleEvent)
  {
      BubbleEvent = true;
      TestDialog2 Dialog = new TestDialog2();

      Dialog.DoOk(o =>
      {
          o.RawForm.Close();
      });

      Dialog.DoCancel(o =>
      {
          o.RawForm.Close();
      });

      Dialog.ShowModal();

  }

SAPB1Dialogs2.gif

sapb1dialogs's People

Contributors

hakanucaar avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.