Esempio n. 1
0
        void clientAtt_EmployeeSigninRecordUpdateCompleted(object sender, EmployeeSigninRecordUpdateCompletedEventArgs e)
        {
            RefreshUI(RefreshedTypes.HideProgressBar);
            if (e.Error == null)
            {
                Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("UPDATESUCCESSED", ""));

                if (closeFormFlag)
                {
                    CloseForm();
                    return;
                }

                FormType = FormTypes.Edit;
                EntityBrowser entBrowser = this.FindParentByType <EntityBrowser>();
                entBrowser.FormType = FormTypes.Edit;
                RefreshUI(RefreshedTypes.AuditInfo);
            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
            }
            RefreshUI(RefreshedTypes.All);
        }
Esempio n. 2
0
        void clientAtt_EmployeeSigninRecordUpdateCompleted(object sender, EmployeeSigninRecordUpdateCompletedEventArgs e)
        {
            RefreshUI(RefreshedTypes.HideProgressBar);
            if (e.Error == null)
            {
                if (!string.IsNullOrEmpty(e.Result))
                {
                    Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Result);
                    this.needSubmit = false;
                    return;
                }
                if(this.needSubmit)
                {
                    Sumbmit();
                    return;
                }
                Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("UPDATESUCCESSED", ""));

                if (closeFormFlag)
                {
                    CloseForm();
                    return;
                }

                FormType = FormTypes.Edit;
                EntityBrowser entBrowser = this.FindParentByType<EntityBrowser>();
                entBrowser.FormType = FormTypes.Edit;
                RefreshUI(RefreshedTypes.AuditInfo);
            }
            else
            {
                this.needSubmit = false;
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
            }
            RefreshUI(RefreshedTypes.All);
        }