Esempio n. 1
0
 void client_GetEmployeeAddSumViewByIDCompleted(object sender, GetEmployeeAddSumViewByIDCompletedEventArgs e)
 {
     if (e.Error != null && !string.IsNullOrEmpty(e.Error.Message))
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
     }
     else
     {
         if (e.Result == null)
         {
             ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("NOTFOUND"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
             return;
         }
         EmployeeAddSumView = e.Result;
         if (FormType == FormTypes.Resubmit)
         {
             EmployeeAddSumView.CHECKSTATE = Convert.ToInt32(CheckStates.UnSubmit).ToString();
         }
         numMonth.Value = Convert.ToDouble(EmployeeAddSumView.DEALMONTH);
         numYear.Value  = Convert.ToDouble(EmployeeAddSumView.DEALYEAR);
         foreach (SMT.Saas.Tools.PermissionWS.T_SYS_DICTIONARY item in combProtectType.ItemsSource)
         {
             if (item.DICTIONARYVALUE.ToString() == EmployeeAddSumView.SYSTEMTYPE)
             {
                 combProtectType.SelectedItem = item;
             }
         }
         //PROJECTNAME传递的是员工全名
         EmployeeAddsumInfoList.Add(EmployeeAddSumView);
         initAddSum("1");
         DtGrid.ItemsSource = EmployeeAddsumInfoList;
         RefreshUI(RefreshedTypes.AuditInfo);
         SetToolBar();
         SetProjectMoneySum();
     }
 }
Esempio n. 2
0
 void client_GetEmployeeAddSumViewByIDCompleted(object sender, GetEmployeeAddSumViewByIDCompletedEventArgs e)
 {
     if (e.Error != null && !string.IsNullOrEmpty(e.Error.Message))
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
     }
     else
     {
         if (e.Result == null)
         {
             ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("NOTFOUND"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
             return;
         }
         EmployeeAddSumView = e.Result;
         if (FormType == FormTypes.Resubmit)
         {
             EmployeeAddSumView.CHECKSTATE = Convert.ToInt32(CheckStates.UnSubmit).ToString();
         }
         numMonth.Value = Convert.ToDouble(EmployeeAddSumView.DEALMONTH);
         numYear.Value = Convert.ToDouble(EmployeeAddSumView.DEALYEAR);
         foreach (SMT.Saas.Tools.PermissionWS.T_SYS_DICTIONARY item in combProtectType.ItemsSource)
         {
             if (item.DICTIONARYVALUE.ToString() == EmployeeAddSumView.SYSTEMTYPE)
             {
                 combProtectType.SelectedItem = item;
             }
         }
         //PROJECTNAME传递的是员工全名
         EmployeeAddsumInfoList.Add(EmployeeAddSumView);
         initAddSum("1");
         DtGrid.ItemsSource = EmployeeAddsumInfoList;
         RefreshUI(RefreshedTypes.AuditInfo);
         SetToolBar();
         SetProjectMoneySum();
     }
 }