Пример #1
0
        /// <summary>
        /// 公司选择按钮事件
        /// </summary>
        private void btnCompany_Click(object sender, EventArgs e)
        {
            FrmMasterSearch frm = new FrmMasterSearch("COMPANY", "");

            if (frm.ShowDialog(this) == DialogResult.OK)
            {
                if (frm.BaseMasterTable != null)
                {
                    txtCompanyName.Text = frm.BaseMasterTable.Name;
                    txtCompanyCode.Text = frm.BaseMasterTable.Code;
                }
            }
            frm.Dispose();
        }
Пример #2
0
        private void btnClaim_Click(object sender, EventArgs e)
        {
            FrmMasterSearch frm = new FrmMasterSearch("Customer", "");

            if (frm.ShowDialog(this) == DialogResult.OK)
            {
                if (frm.BaseMasterTable != null)
                {
                    txtClaimCode.Text = frm.BaseMasterTable.Code;
                    txtClaimName.Text = frm.BaseMasterTable.Name;
                    txtClaimCode.Focus();
                }
            }
            frm.Dispose();
        }
Пример #3
0
        private void btnUnit_Click(object sender, EventArgs e)
        {
            FrmMasterSearch frm = new FrmMasterSearch("UNIT", "");

            if (frm.ShowDialog(this) == DialogResult.OK)
            {
                if (frm.BaseMasterTable != null)
                {
                    txtUnitCode.Text = frm.BaseMasterTable.Code;
                    txtUnitName.Text = frm.BaseMasterTable.Name;
                    txtUnitCode.Focus();
                    txtSafetyStock.Focus();
                }
            }
            frm.Dispose();
        }
Пример #4
0
        private void btnTechnologyDrawing3_Click(object sender, EventArgs e)
        {
            FrmMasterSearch frm = new FrmMasterSearch("DRAWING", "");

            if (frm.ShowDialog(this) == DialogResult.OK)
            {
                if (frm.BaseMasterTable != null)
                {
                    txtTechnologyDrawingCode3.Text = frm.BaseMasterTable.Code;
                    txtTechnologyDrawingName3.Text = frm.BaseMasterTable.Name;
                    txtTechnologyDrawingCode3.Focus();
                    btnSave.Focus();
                }
            }
            frm.Dispose();
        }
Пример #5
0
        private void btnDepartment_Click(object sender, EventArgs e)
        {
            FrmMasterSearch frm = new FrmMasterSearch("DEPARTMENT", "");

            if (frm.ShowDialog(this) == DialogResult.OK)
            {
                if (frm.BaseMasterTable != null)
                {
                    txtDepartmentCode.Text = frm.BaseMasterTable.Code;
                    txtDepartmentName.Text = frm.BaseMasterTable.Name;
                    txtDepartmentCode.Focus();
                    btnSave.Focus();
                }
            }
            frm.Dispose();
        }
Пример #6
0
        private void btnProduct_Click(object sender, EventArgs e)
        {
            FrmMasterSearch frm = new FrmMasterSearch("PRODUCT", "");

            if (frm.ShowDialog(this) == DialogResult.OK)
            {
                if (frm.BaseMasterTable != null)
                {
                    txtProductCode.Text = frm.BaseMasterTable.Code;
                    txtProductName.Text = frm.BaseMasterTable.Name;
                    txtProductCode.Focus();
                    txtUnitCode.Focus();
                    txtProductCode_Leave(txtProductCode, EventArgs.Empty);
                }
            }
            frm.Dispose();
        }