void clientAtt_ImportClockInRdListFromFileAndLoginDataCompleted(object sender, ImportClockInRdListFromFileAndLoginDataCompletedEventArgs e)
        {
            RefreshUI(RefreshedTypes.HideProgressBar);
            if (e.Error == null)
            {
                if (e.strMsg.IndexOf("ERROR") > -1)
                {
                    Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.strMsg.Replace("{", "").Replace("}", "")));
                    return;
                }

                Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("IMPORTSUCCESSED", "EMPLOYEECLOCKINRECORD"));
                tbFileName.Text      = string.Empty;
                txtUploadResMsg.Text = "1";
            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
            }
        }
Example #2
0
        void clientAtt_ImportClockInRdListFromFileAndLoginDataCompleted(object sender, ImportClockInRdListFromFileAndLoginDataCompletedEventArgs e)
        {
            RefreshUI(RefreshedTypes.HideProgressBar);
            if (e.Error == null)
            {
                if (e.strMsg.IndexOf("ERROR") > -1)
                {
                    Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.strMsg.Replace("{", "").Replace("}", "")));
                    return;
                }

                Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("IMPORTSUCCESSED", "EMPLOYEECLOCKINRECORD"));
                tbFileName.Text = string.Empty;
                txtUploadResMsg.Text = "1";
            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
            }
        }