Beispiel #1
0
 public IstabAddEditDialog(IstabDialog istab_dialog, ISTAB_TABTYP tabtyp, IstabVM istab = null)
 {
     InitializeComponent();
     this.main_form    = istab_dialog.main_form;
     this.istab_dialog = istab_dialog;
     this.form_mode    = istab != null ? FORM_MODE.EDIT : FORM_MODE.ADD;
     this.istab        = istab;
     this.tabtyp       = tabtyp;
 }
Beispiel #2
0
        private void LoadComboboxItem()
        {
            istab_dialog_stkgrp = new IstabDialog(this.main_form, ISTAB_TABTYP.STKGRP);
            istab_dialog_qucod  = new IstabDialog(this.main_form, ISTAB_TABTYP.QUCOD);
            this.stkgrp         = this.istab_dialog_stkgrp.LoadIstabFromServer();
            this.qucod          = this.istab_dialog_qucod.LoadIstabFromServer();

            this.cbStkGrp.AddItem <IstabVM>(this.stkgrp);
            this.cbQucod.AddItem <IstabVM>(this.qucod);
        }
        private void OesoConfirmDialog_Load(object sender, EventArgs e)
        {
            this.splashScreenManager1.ShowWaitForm();

            foreach (Istab item in MainForm.LoadIstabFromDBF(this.main_form.config).Where(i => i.tabtyp == "21"))
            {
                this.cbLocCod.Properties.Items.Add(item);
            }
            this.cbLocCod.SelectedIndex = 0;
            if (this.poprit.DealerType == (int)DEALER_TYPE.สำนักงานบัญชีไฮเทค)
            {
                this.btnArmas.Enabled = true;
            }
            else
            {
                this.oeso.cuscod = this.poprit.DealerCode;
            }

            this.cbYouref.AddItem <string>(IstabDialog.GetIstabList(this.main_form, ISTAB_TABTYP.YOUREF_AR).ToTypdesStringValue(), true);

            this.splashScreenManager1.CloseWaitForm();
        }
Beispiel #4
0
        private void btnQucod_Click(object sender, EventArgs e)
        {
            IstabDialog qucod = new IstabDialog(this.main_form, ISTAB_TABTYP.QUCOD);

            qucod.ShowDialog();
        }
Beispiel #5
0
        private void btnStkGrp_Click(object sender, EventArgs e)
        {
            IstabDialog stkgrp = new IstabDialog(this.main_form, ISTAB_TABTYP.STKGRP);

            stkgrp.ShowDialog();
        }