Пример #1
0
        private void EntitySet()
        {
            VendorAdd entity = new VendorAdd();

            entity.ID = m_ID;
            entity.SelectByID();
            txtGoodType.Text = entity.GoodType;
            txtVendorPC.Text = entity.VendorPC;
            txtRemark.Text   = entity.Remark;
        }
Пример #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)
     {
     }
 }