Exemplo n.º 1
0
 private void tsbUpload_Click(object sender, EventArgs e)
 {
     try
     {
         if (!MyLove.PermissionsBalidation(this.Text, "14"))
         {
             return;
         }
         DataRow dr = this.dgvItem.CurrentRow();
         if (dr == null)
         {
             return;
         }
         var item = DB.ReflectionHelper.DataRowToModel <bi_t_item_info>(dr);
         var frm  = new frmItemUpdate();
         frm.item_info = item;
         IBLL.IItem bll = new BLL.ItemBLL();
         if (bll.IsUse(item.item_no) == 1)
         {
             frm.txtSubNo.Enabled = false;
         }
         frm.ShowDialog();
         LoadItem();
     }
     catch (Exception ex)
     {
         MsgForm.ShowFrom(ex);
     }
 }
Exemplo n.º 2
0
        private void tsbAdd_Click(object sender, EventArgs e)
        {
            if (!MyLove.PermissionsBalidation(this.Text, "01"))
            {
                return;
            }
            var frm = new frmItemUpdate();

            if (this.tv.SelectedNode != null && this.tv.SelectedNode.Tag != null)
            {
                frm.item_clsno = this.tv.SelectedNode.Tag.ToString();
            }
            frm.ShowDialog();
            LoadItem();
        }