Exemplo n.º 1
0
        /// <summary>
        /// 绑定Grid
        /// </summary>
        public override void BindGrid()
        {
            VendorAddRule rule = new VendorAddRule();
            DataTable     dt   = rule.RShow(HTDataConditionStr, ProcessGrid.GetQueryField(gridView1));

            gridView1.GridControl.DataSource = dt;
            gridView1.GridControl.Show();
        }
Exemplo n.º 2
0
 /// <summary>
 /// 保存
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnLoad_Click(object sender, EventArgs e)
 {
     try
     {
         VendorAddRule rule   = new VendorAddRule();
         VendorAdd     entity = new VendorAdd();
         entity.ID = m_ID;
         entity.SelectByID();
         entity.ID       = m_ID;
         entity.VendorID = m_VendorID;
         entity.Remark   = txtRemark.Text.Trim();
         entity.GoodType = txtGoodType.Text.Trim();
         entity.VendorPC = txtVendorPC.Text.Trim();
         rule.RUpdate(entity);
         this.Close();
     }
     catch (Exception E)
     {
     }
 }