Esempio n. 1
0
        void client_GetEmployeeEntryByEmployeeIDAndCOMPANYIDCompleted(object sender, GetEmployeeEntryByEmployeeIDAndCOMPANYIDCompletedEventArgs 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
            {
                var temp = e.Result.FirstOrDefault();

                if (temp != null)
                {
                    txtPtr.Text = temp.PROBATIONPERIOD.GetValueOrDefault().ToString();
                    //入职时间
                    if (temp.ENTRYDATE != null)
                    {
                        txtReportDate.Text = temp.ENTRYDATE.Value.ToString("yyyy-MM-dd");
                    }
                    //到岗日期
                    if (temp.ONPOSTDATE != null)
                    {
                        txtOndutyDate.Text = temp.ONPOSTDATE.Value.ToString("yyyy-MM-dd");
                    }
                }
            }
        }
Esempio n. 2
0
        void client_GetEmployeeEntryByEmployeeIDAndCOMPANYIDCompleted(object sender, GetEmployeeEntryByEmployeeIDAndCOMPANYIDCompletedEventArgs 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
            {
                var temp = e.Result.FirstOrDefault();

                if (temp != null)
                {
                    txtPtr.Text = temp.PROBATIONPERIOD.GetValueOrDefault().ToString();
                    //入职时间
                    if (temp.ENTRYDATE != null)
                        txtReportDate.Text = temp.ENTRYDATE.Value.ToString("yyyy-MM-dd");
                    //到岗日期
                    if (temp.ONPOSTDATE != null)
                        txtOndutyDate.Text = temp.ONPOSTDATE.Value.ToString("yyyy-MM-dd");
                }
            }
        }