Exemple #1
0
 // 1s 冉龙军
 /// <summary>
 /// 引擎调用时的构造函数
 /// </summary>
 /// <param name="KPIRecordID"></param>
 /// <param name="type"></param>
 public Scoring(FormTypes type, string KPIRecordID)
 {
     FormType = type;
     InitializeComponent();
     InitPara();
     client.GetKPIRecordByIdAsync(KPIRecordID);
 }
Exemple #2
0
        /// <summary>
        /// 获取KPI记录
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void client_CheckRecordIsSummarizeCompleted(object sender, CheckRecordIsSummarizeCompletedEventArgs e)
        {
            if (e.Error != null && e.Error.Message != "")
            {
                //异常
                //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"),
                                               Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
            }
            else
            {
                //获取类别
                bool result = e.Result; result = false;
                if (!result)
                {
                    Complain               = new T_HR_KPIRECORDCOMPLAIN();
                    Complain.COMPLAINID    = Guid.NewGuid().ToString();
                    Complain.COMPLAINANTID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID;
                    Complain.COMPLAINDATE  = DateTime.Now;

                    Complain.CREATEUSERID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID;
                    Complain.CREATEDATE   = DateTime.Now;
                    Complain.UPDATEUSERID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID;
                    Complain.UPDATEDATE   = DateTime.Now;
                    Complain.CHECKSTATE   = Convert.ToInt32(CheckStates.UnSubmit).ToString();

                    // 1s 冉龙军
                    SetToolBar();
                    // 1e
                    SetComplainIsEnable(true);
                    //获取KPI明细记录
                    client.GetKPIRecordByIdAsync(kpiRecordID);
                }
                else
                {
                    // 1s 冉龙军
                    //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("PROMPT"), Utility.GetResourceStr("ALREADYSUMMARIZE", "KPIRECORDCOMPLAIN"));
                    //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("PROMPT"), Utility.GetResourceStr("ALREADYSUMMARIZE"));
                    ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr("ALREADYSUMMARIZE"),
                                                   Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
                    // 1e
                    return;
                }
            }
        }