コード例 #1
0
ファイル: frmCreate.cs プロジェクト: radtek/InfoPos
        private void btnBrowse_Click(object sender, EventArgs e)
        {
            fo_Customer.frmCustSearch frm = new fo_Customer.frmCustSearch(_core);
            DialogResult res = frm.ShowDialog();

            if (res == System.Windows.Forms.DialogResult.OK)
            {
                DataRow r = frm.CurrentRow;
                if (r != null)
                {
                    txtCustNo.EditValue = Static.ToStr(r["customerno"]);
                    txtName.EditValue   = Static.ToStr(r["custname"]);
                    txtPhone.EditValue  = Static.ToStr(r["mobile"]);
                    txtNo.EditValue     = Static.ToStr(r["registerno"]);
                }
            }
        }
コード例 #2
0
ファイル: frmReg.cs プロジェクト: radtek/InfoPos
        public void SubMenu_CustomerAdd()
        {
            //InfoPos.fo_Customer.frmCustomer frm = new fo_Customer.frmCustomer(_core, "", "", "", "", "", "");
            //frm.ShowDialog();

            InfoPos.fo_Customer.frmCustSearch frm = new fo_Customer.frmCustSearch(_core);
            DialogResult res = frm.ShowDialog();

            if (res == System.Windows.Forms.DialogResult.OK)
            {
                if (frm.Selected)
                {
                    CustomerAdd(_pledgeno, _pledgecustno, frm.CustNo);
                }
            }
            frm.Dispose();
        }