示例#1
0
 private void ucToolbar1_NewEventHandler(object sender, EventArgs e)
 {
     frmBillCodeRuleEdit f = new frmBillCodeRuleEdit();
     f.UpdateMode = GENLSYS.MES.Common.Public_UpdateMode.Insert;
     f.ShowDialog();
     GetData(QueryParameters);
 }
示例#2
0
        private void ucToolbar1_EditEventHandler(object sender, EventArgs e)
        {
            List<MESParameterInfo> lstParameters = new List<MESParameterInfo>();
            lstParameters.Add(new MESParameterInfo()
            {
                ParamName = "bcrid",
                ParamValue = this.grdQuery.ActiveRow.Cells["bcrid"].Value.ToString(),
                ParamType = "string"
            });

            frmBillCodeRuleEdit f = new frmBillCodeRuleEdit();
            f.UpdateMode = GENLSYS.MES.Common.Public_UpdateMode.Update;
            f.PrimaryKeys = lstParameters;
            f.ShowDialog();
            GetData(QueryParameters);
        }