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

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