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

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