Ejemplo n.º 1
0
        private void FrmWarehouseManage_Load(object sender, EventArgs e)
        {
            #region 添加应用程序
            if (this.mWare.gUserInfo.rolecaption == "系统开发员")
            {
                IList <IDictionary <string, object> > lsfunls = new List <IDictionary <string, object> >();
                FrmBLL.publicfuntion.GetFromCtls(this, ref lsfunls);
                Dictionary <string, object> dic = new Dictionary <string, object>();
                dic.Add("PROGID", this.Name);
                dic.Add("PROGNAME", this.Text);
                dic.Add("PROGDESC", this.Text);
                FrmBLL.publicfuntion.AddProgInfo(dic, lsfunls);
            }
            #endregion
            this.medttye = EdtType.新增;

            dl = new delegatelocation(LoadLoc);
            dl.BeginInvoke(null, null);
            //dgv_warehouseinfo.DataSource = refWebtStorehouseManage.Instance.GetAlltStorehouseLoctionInfo();
            //dt = refWebtStorehouseManage.Instance.GettStorehouseLoctionType();
            //foreach (DataRow dr in dt.Rows)
            //{
            //    this.cb_loctype.Items.Add(dr["loctype"].ToString());
            //}
            //d = refWebtStorehouseManage.Instance.GetAlltStorehouseInfo();
            //foreach (DataRow dr in d.Rows)
            //{
            //    this.cb_warehouse.Items.Add(dr["storehouseId"].ToString());
            //}
        }
Ejemplo n.º 2
0
 private void bt_clearinfo_Click(object sender, EventArgs e)
 {
     this.medttye               = EdtType.新增;
     this.tb_locid.Text         = "";
     this.tb_locdesc.Text       = "";
     this.tb_loctotal.Text      = "";
     this.tb_remark.Text        = "";
     this.tb_uplocid.Text       = "";
     this.cb_warehouse.Text     = "";
     this.cb_loctype.Text       = "";
     this.bt_deleteinfo.Enabled = true;
     this.bt_saveinfo.Enabled   = true;
     this.bt_updateinfo.Enabled = true;
     this.tb_locid.Enabled      = true;
 }
Ejemplo n.º 3
0
 private void dgv_warehouseinfo_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     try
     {
         if (e.RowIndex != -1 && e.ColumnIndex != -1)
         {
             this.tb_locid.Text     = dgv_warehouseinfo["locId", e.RowIndex].Value.ToString();
             this.cb_loctype.Text   = dgv_warehouseinfo["loctype", e.RowIndex].Value.ToString();
             this.tb_loctotal.Text  = dgv_warehouseinfo["loctotal", e.RowIndex].Value.ToString();
             this.cb_warehouse.Text = dgv_warehouseinfo["storehouseId", e.RowIndex].Value.ToString();
             this.tb_locdesc.Text   = dgv_warehouseinfo["locdesc", e.RowIndex].Value.ToString();
             this.tb_uplocid.Text   = dgv_warehouseinfo["uplocId", e.RowIndex].Value.ToString();
             this.tb_remark.Text    = dgv_warehouseinfo["remark", e.RowIndex].Value.ToString();
             this.medttye           = EdtType.修改;
         }
     }
     catch (Exception ex)
     {
         mWare.ShowPrgMsg(ex.Message, MainParent.MsgType.Error);
     }
 }