Ejemplo n.º 1
0
 private void ProcessApproval()
 {
     try
     {
         CurrentFocusReCheckData = new CCheckData();
         CurrentFocusReCheckData = (CCheckData)LvReCheck.SelectedItem;
         AgentID = CurrentFocusReCheckData.AgentID;
         if (S3105App.ListScoreParam.Where(p => p.ParamID == 31010404).Count() != 0)
         {
             DateTime dealTime = Convert.ToDateTime(CurrentFocusReCheckData.AppealDatetime).AddHours(Convert.ToInt32((S3105App.ListScoreParam.Where(p => p.ParamID == 31010404).First().ParamValue.Substring(9, 4))));//申诉后任务处理截至日期
             if (S3105App.ListScoreParam.Where(p => p.ParamID == 31010404).First().ParamValue.Substring(8, 1) == "1" && DateTime.Compare(dealTime, DateTime.Now) < 0)
             {
                 ShowInformation(CurrentApp.GetLanguageInfo("3105T00116", "Has exceeded the task processing time.")); return;
             }
         }
         if (!string.IsNullOrWhiteSpace(CurrentFocusReCheckData.RecoredReference) && CurrentFocusReCheckData != null)
         {
             if (S3105App.AppealProcess == "N")
             {
                 PopupPanel.Title = CurrentApp.GetLanguageInfo("3105T00011", "Re-assessment");
                 ProcessReCheck popProcessCheck = new ProcessReCheck();
                 popProcessCheck.CurrentApp   = CurrentApp;
                 popProcessCheck.SelCheckData = CurrentFocusReCheckData;
                 popProcessCheck.ParentPage   = this;
                 PopupPanel.Content           = popProcessCheck;
                 PopupPanel.IsOpen            = true;
             }
             else
             {
                 PopupPanel.Title = CurrentApp.GetLanguageInfo("3105T00011", "Re-assessment");
                 ProcessReCheck popProcessCheck = new ProcessReCheck();
                 popProcessCheck.CurrentApp   = CurrentApp;
                 popProcessCheck.SelCheckData = CurrentFocusReCheckData;
                 popProcessCheck.ParentPage   = this;
                 PopupPanel.Content           = popProcessCheck;
                 PopupPanel.IsOpen            = true;
             }
         }
         else
         {
             ShowInformation(CurrentApp.GetLanguageInfo("3105T00052", "Please select one record at least."));
         }
     }
     catch (Exception)
     {
     }
 }