public FormReceivingOrder() { InitializeComponent(); CellDataValidBackColor = clmDrugName.DefaultCellStyle.BackColor; this.dataGridView1.RowPostPaint += delegate(object o, DataGridViewRowPostPaintEventArgs ex) { DataGridViewOperator.SetRowNumber((DataGridView)o, ex); }; Bcms = new BaseForm.BasicInfoRightMenu(this.dataGridView1); Bcms.InsertDrugBasicInfo(); Bcms.InsertSupplyUnitBasicInfo(); this.dataGridView1.CellMouseClick += new DataGridViewCellMouseEventHandler(dataGridView1_CellMouseClick); }
public FormPurchaseOrderGenerator() { InitializeComponent(); this.dataGridView1.AutoGenerateColumns = false; string msg = String.Empty; CellDataValidBackColor = clmDrugName.DefaultCellStyle.BackColor; string employeeName = AppClientContext.CurrentUser.Employee.Name; label10.Text = employeeName; label4.Text = ""; lblCreateDate.Text = DateTime.Now.ToString("yyyy年MM月dd日 HH时mm分"); this.dataGridView1.Rows.Clear(); Bcms = new BaseForm.BasicInfoRightMenu(this.dataGridView1); Bcms.InsertDrugBasicInfo(); Bcms.InsertSupplyUnitBasicInfo(); this.dataGridView1.CellMouseClick += new DataGridViewCellMouseEventHandler(dataGridView1_CellMouseClick); //右键菜单查询品种ID #region 采购返税点操作。 XmlDocument doc = new XmlDocument(); doc.Load(AppDomain.CurrentDomain.BaseDirectory + "BugsBox.Pharmacy.AppClient.SalePriceType.xml"); XmlNodeList xmlNode = doc.SelectNodes("/SalePriceType/TaxReturn"); if (xmlNode == null || xmlNode.Count <= 0) { return; } TaxReturnStatus = Convert.ToInt16(xmlNode[0].Attributes[0].Value); if (this.TaxReturnStatus == 1) { this.label18.Visible = this.label17.Visible = this.comboBox1.Visible = true; ListUsr = this.PharmacyDatabaseService.AllUsers(out msg).ToList(); this.comboBox1.DisplayMember = "Account"; this.comboBox1.ValueMember = "Id"; this.comboBox1.DataSource = ListUsr; this.comboBox1.AutoCompleteMode = AutoCompleteMode.SuggestAppend; this.comboBox1.AutoCompleteSource = AutoCompleteSource.ListItems; this.comboBox1.SelectedValue = ListUsr.First().Id; this.comboBox1.Focus(); this.ckDirectMarketing.Visible = true; } #endregion checkBox1.Checked = true; checkBox1_CheckedChanged(null, null); }
public FormPurchaseOrderEdit() { InitializeComponent(); Bcms = new BaseForm.BasicInfoRightMenu(this.dataGridView1); Bcms.InsertDrugBasicInfo(); Bcms.InsertSupplyUnitBasicInfo(); this.dataGridView1.CellBeginEdit += new DataGridViewCellCancelEventHandler(dataGridView1_CellBeginEdit); this.dataGridView1.CellEndEdit += new DataGridViewCellEventHandler(dataGridView1_CellEndEdit); this.dataGridView1.CellFormatting += new DataGridViewCellFormattingEventHandler(dataGridView1_CellFormatting); this.dataGridView1.DataError += new DataGridViewDataErrorEventHandler(dataGridView1_DataError); this.dataGridView1.RowPostPaint += delegate(object o, DataGridViewRowPostPaintEventArgs ex) { DataGridViewOperator.SetRowNumber((DataGridView)o, ex); }; this.btnAddDetail.Click += new EventHandler(btnAddDetail_Click); this.btnDeleteDetail.Click += new EventHandler(btnDeleteDetail_Click); this.dataGridView1.CellMouseClick += new DataGridViewCellMouseEventHandler(dataGridView1_CellMouseClick); }