Пример #1
0
 private void btnSave_Click(object sender, EventArgs e)
 {
     try
     {
         String      TableName         = "lnk_" + GblIQCare.ItemTableName;
         IMasterList objItemCommonlist = (IMasterList)ObjectFactory.CreateInstance("BusinessProcess.SCM.BMasterList,BusinessProcess.SCM");
         int         retrows           = objItemCommonlist.SaveUpdateStoreLinking(DTLinkStore, TableName, GblIQCare.AppUserId);
         theButton.PerformClick();
         IQCareWindowMsgBox.ShowWindow("ProgramSave", this);
     }
     catch (Exception err)
     {
         MsgBuilder theBuilder = new MsgBuilder();
         theBuilder.DataElements["MessageText"] = err.Message.ToString();
         IQCareWindowMsgBox.ShowWindowConfirm("#C1", theBuilder, this);
     }
 }