private void client_UpdateHireAppCompleted(object sender, UpdateHireAppCompletedEventArgs e) { RefreshUI(RefreshedTypes.HideProgressBar); try { if (e.Error == null) { if (e.Result != "") { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Result)); } else { if (e.UserState.ToString() == "Edit") { if (FromFormFlag == "1") //入住操作 修改完ISOK之后 需要添加一条出租记录 { AddHireRecord(); } else { Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("MODIFYSUCCESSED")); if (GlobalFunction.IsSaveAndClose(refreshType)) { RefreshUI(refreshType); } else { InitData(); } } } else if (e.UserState.ToString() == "Audit") { Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("SUCCESSAUDIT")); } else if (e.UserState.ToString() == "Submit") { Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("SUCCESSSUBMITAUDIT")); } RefreshUI(RefreshedTypes.All); ////HtmlPage.Window.Alert("修改房源记录成功!"); //if (actionFlag == DataActionFlag.SubmitFlow) //{ // //actionFlag = DataActionFlag.SubmitComplete; // SumbitFlow(); //} //else //{ // RefreshUI(RefreshedTypes.ProgressBar); // if (actionFlag == DataActionFlag.SubmitComplete) // { // if (action == Action.Add || action == Action.Edit) // { // Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("SUBMITHOUSEHIREAPPSUCCESSED")); // } // else // { // Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("AUDITSUCCESSED", "HOUSEHIREAPP")); // } // } // else // { // if (FromFormFlag == "1") //入住操作 修改完ISOK之后 需要添加一条出租记录 // { // AddHireRecord(); // } // else // { // if (GlobalFunction.IsSaveAndClose(refreshType)) // { // Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("UPDATESUCCESSED", "HOUSEHIREAPP")); // } // else // { // Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("UPDATESUCCESSED", "HOUSEHIREAPP")); // InitData(); // } // } // } // RefreshUI(refreshType); //} } } else { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message); } } catch (Exception ex) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString()); } }