private void AuditOrder(CheckStates cs) { string[] orderids = this.txtOrderID.Text.Split(','); orderids.ToList().ForEach(item => { AuditOrder(item, cs); }); }
public void Check() { if (State == CheckStates.Checked) { State = CheckStates.Unchecked; } else { State = CheckStates.Checked; } }
public static string CheckStateText(CheckStates checkState) { switch (checkState) { case CheckStates.NoChange: return "No change."; case CheckStates.FolderRemoved: return "Folder(s) removed."; case CheckStates.FileAdded: return "File(s) added."; case CheckStates.FileRemoved: return "File(s) removed."; case CheckStates.FileChanged: return "File(s) changed."; } return "Unknown state!"; }
/// <summary> /// Event triggered when a button is pressed or released /// </summary> /// <param name="ColPinId">The Column Pin in which a key is pressed</param> /// <param name="State">The state of the button (0 = pressed, 1 = released)</param> /// <param name="time">Time of the event</param> void MatrixKeyPad_OnInterrupt(uint ColPinId, uint State, DateTime time) { // Translates the ColPinId to the actual column uint ColPin; for (ColPin = 0; ColPin < this._ColPinIds.Length; ++ColPin) { if (this._ColPinIds[ColPin] == ColPinId) { break; } } if (this._CheckState == CheckStates.WaitingForSignal && State == 0) { // To avoid interrupts interfear with each other we disable them temporarily this.ActivateColInterrupts(false); // Button pressed. We need to find out in which row! this._CheckState = CheckStates.RowCheck; // We set each pin high one by one for (uint RowPinCount = 0; RowPinCount < this._RowPins.Length; ++RowPinCount) { this.ActivateRowPorts(false); this._RowPins[RowPinCount].Active = true; if (!this._ColPins[ColPin].Read()) { // Keypress found, we calculate the key number this._LastKeyPress = unchecked ((uint)(RowPinCount * this._ColPins.Length + ColPin)); } } // Activates all row pins again this.ActivateRowPorts(true); // Now lets wait for the key to be released this._CheckState = CheckStates.WaitingForRelease; // Re-activates the interrupts this.ActivateColInterrupts(true); // Sends back the keynumber through the event (if it exists) if (this.OnKeyDown != null) { this.OnKeyDown(this._LastKeyPress, 0, new DateTime()); } } else if (this._CheckState == CheckStates.WaitingForRelease && State == 1) { // Button released, send back the event (if it exists) if (this.OnKeyUp != null) { this.OnKeyUp(this._LastKeyPress, 0, new DateTime()); } this._CheckState = CheckStates.WaitingForSignal; } }
public AuditResult AuditFBEntity(FBEntity fbEntity, CheckStates checkStates) { try { using (FBCommonBLL fbCommonBLL = new FBCommonBLL()) { return(fbCommonBLL.AuditFBEntity(fbEntity, checkStates)); } } catch (Exception ex) { Tracer.Debug(ex.ToString()); throw ex; } }
public static string CheckStateText(CheckStates checkState) { switch (checkState) { case CheckStates.NoChange: return("No change."); case CheckStates.FolderRemoved: return("Folder(s) removed."); case CheckStates.FileAdded: return("File(s) added."); case CheckStates.FileRemoved: return("File(s) removed."); case CheckStates.FileChanged: return("File(s) changed."); } return("Unknown state!"); }
/// <summary>Generic KeyPad driver</summary> /// <param name="RowPins">The pins bound to rows on the keypad matrix</param> /// <param name="ColPins">The pins bound to columns on the keypad matrix</param> /// <remarks>See also: http://netmftoolbox.codeplex.com/wikipage?title=Toolbox.NETMF.Hardware.MatrixKeyPad </remarks> public MatrixKeyPad(Cpu.Pin[] RowPins, Cpu.Pin[] ColPins) { // Defines all RowPins this._RowPins = new TristatePort[RowPins.Length]; for (var RowPinCount = 0; RowPinCount < RowPins.Length; ++RowPinCount) { this._RowPins[RowPinCount] = new TristatePort(RowPins[RowPinCount], false, false, Port.ResistorMode.PullUp); this._RowPins[RowPinCount].Active = true; } // Defines all ColPins this._ColPinIds = new uint[ColPins.Length]; this._ColPins = new InterruptPort[ColPins.Length]; for (var ColPinCount = 0; ColPinCount < ColPins.Length; ++ColPinCount) { this._ColPinIds[ColPinCount] = (uint)ColPins[ColPinCount]; this._ColPins[ColPinCount] = new InterruptPort(ColPins[ColPinCount], true, Port.ResistorMode.PullUp, Port.InterruptMode.InterruptEdgeBoth); this._ColPins[ColPinCount].OnInterrupt += new NativeEventHandler(MatrixKeyPad_OnInterrupt); } // Defines the check state this._CheckState = CheckStates.WaitingForSignal; }
private void AuditOrder(string orderID, CheckStates cs) { string typeName = ""; string keyName = ""; var entityInfo = EntityInfoList.First(item => item.Type == this.ddlOrderType.SelectedValue); typeName = entityInfo.Type; keyName = entityInfo.KeyName; QueryExpression qe = QueryExpression.Equal(keyName, orderID); qe.QueryType = typeName; using (BudgetAccountBLL bll = new BudgetAccountBLL()) { var data = qe.Query(bll); var order = data.FirstOrDefault(); if (order != null) { try { bll.BeginTransaction(); bll.UpdateAccount(order.ToFBEntity(), cs); bll.CommitTransaction(); } catch (Exception ex) { bll.RollbackTransaction(); SMT.Foundation.Log.Tracer.Error("手动审核异常:" + ex.ToString()); Response.Write(ex.ToString()); } Response.Write("操作成功"); } else { Response.Write("没有可操作的数据"); } } }
private void DoSubitFlowAction(Saas.Tools.FlowWFService.SubmitData submitData) { CheckStates checkStates = CheckStates.Approving; if (submitData.SubmitFlag == Saas.Tools.FlowWFService.SubmitFlag.Approval) { if (submitData.ApprovalResult == Saas.Tools.FlowWFService.ApprovalResult.NoPass) { checkStates = CheckStates.UnApproved; } else { checkStates = CheckStates.Approved; } } VirtualAudit va = InitVirtualAudit(submitData); this.OrderEntity.SetObjValue(EntityFieldName.UpdateUserID, OrderEntity.LoginUser.Value); FBEntity entityOrder = this.SaveFBEntity; FBEntity FBEntityAudit = va.ToFBEntity(); FBEntityAudit.AddReferenceFBEntity <EntityObject>(entityOrder); if (checkStates == CheckStates.Approving) { entityOrder.SetObjValue(EntityFieldName.UpdateUserID, this.OrderEntity.LoginUser.Value); entityOrder.SetObjValue(EntityFieldName.UpdateDate, DateTime.Now); } // 重新提交 if (this.OrderEntity.IsReSubmit) { checkStates = CheckStates.ReSubmit; } AuditServiceLocal.AuditFBEntity(FBEntityAudit, checkStates); }
/// <summary> /// Event triggered when a button is pressed or released /// </summary> /// <param name="ColPinId">The Column Pin in which a key is pressed</param> /// <param name="State">The state of the button (0 = pressed, 1 = released)</param> /// <param name="time">Time of the event</param> void MatrixKeyPad_OnInterrupt(uint ColPinId, uint State, DateTime time) { // Translates the ColPinId to the actual column uint ColPin; for (ColPin = 0; ColPin < this._ColPinIds.Length; ++ColPin) { if (this._ColPinIds[ColPin] == ColPinId) { break; } } if (this._CheckState == CheckStates.WaitingForSignal && State == 0) { // To avoid interrupts interfear with each other we disable them temporarily this.ActivateColInterrupts(false); // Button pressed. We need to find out in which row! this._CheckState = CheckStates.RowCheck; // We set each pin high one by one for (uint RowPinCount = 0; RowPinCount < this._RowPins.Length; ++RowPinCount) { this.ActivateRowPorts(false); this._RowPins[RowPinCount].Active = true; if (!this._ColPins[ColPin].Read()) { // Keypress found, we calculate the key number this._LastKeyPress = unchecked((uint)(RowPinCount * this._ColPins.Length + ColPin)); } } // Activates all row pins again this.ActivateRowPorts(true); // Now lets wait for the key to be released this._CheckState = CheckStates.WaitingForRelease; // Re-activates the interrupts this.ActivateColInterrupts(true); // Sends back the keynumber through the event (if it exists) if (this.OnKeyDown != null) this.OnKeyDown(this._LastKeyPress, 0, new DateTime()); } else if (this._CheckState == CheckStates.WaitingForRelease && State == 1) { // Button released, send back the event (if it exists) if (this.OnKeyUp != null) this.OnKeyUp(this._LastKeyPress, 0, new DateTime()); this._CheckState = CheckStates.WaitingForSignal; } }
public CheckButton(string name, Point start, int width, int hight, CheckStates st) : base(name, start, width, hight) { State = st; }
public void AuditFBEntity(FBEntity fbEntity, CheckStates checkStates) { FBService.AuditFBEntityAsync(fbEntity, checkStates); }
protected void Button1_Click(object sender, EventArgs e) { StringBuilder sb = new StringBuilder(); BudgetAccountBLL bll = new BudgetAccountBLL(); try { var data = GetEntities(); bll.BeginTransaction(); entityTypeList.ForEach(item => { data[item].ForEach(entity => { try { sb.AppendLine(item + " : " + entity.GetOrderID()); CheckStates cstates = (CheckStates)int.Parse(entity.GetValue(FieldName.CheckStates).ToString()); var master = (entity as T_FB_DEPTBUDGETSUMMASTER); if (master != null) { if (!master.T_FB_DEPTBUDGETSUMDETAIL.IsLoaded) { master.T_FB_DEPTBUDGETSUMDETAIL.Load(); } master.T_FB_DEPTBUDGETSUMDETAIL.ToList().ForEach(itemd => { if (!itemd.T_FB_DEPTBUDGETAPPLYMASTERReference.IsLoaded) { itemd.T_FB_DEPTBUDGETAPPLYMASTERReference.Load(); } bll.UpdateAccount(itemd.T_FB_DEPTBUDGETAPPLYMASTER.ToFBEntity(), CheckStates.Approving); }); } bll.UpdateAccount(entity.ToFBEntity(), CheckStates.Approving); if (cstates == CheckStates.Approved) { bll.UpdateAccount(entity.ToFBEntity(), CheckStates.Approved); } } catch (Exception exx) { throw exx; } }); }); bll.CommitTransaction(); } catch (Exception ex) { bll.RollbackTransaction(); sb.AppendLine(); sb.AppendLine(ex.ToString()); } finally { this.tbRemark.Text = sb.ToString(); } }
public int UpdateCheckState(string strModelCode, string orderID, string strCheckStates, ref string strMsg) { int i = -1; try { SystemBLL.Debug("UpdateCheckState方法已被调用,参数:strModelCode: " + strModelCode + ", orderID: " + orderID + ", strCheckStates: " + strCheckStates); // begin 用于出差报销、事项审批的手机提交 if (strModelCode == "Travel") { var tempResult = UpdateExtensionOrder(strModelCode, orderID, strCheckStates, ref strMsg); return((tempResult == null) ? -1 : 1); } // end FBCommonService fbCommonService = new FBCommonService(); List <EntityInfo> EntityInfoList = fbCommonService.GetEntityInfoList(); if (EntityInfoList == null) { strMsg = "预算服务初始化异常,请重试。"; return(-1); } if (EntityInfoList.Count() == 0) { strMsg = "预算服务初始化异常,请重试。"; return(-1); } string strTypeName = ""; string strKeyName = ""; CheckStates cs = CheckStates.UnSubmit; switch (strCheckStates) { case "1": cs = CheckStates.Approving; break; case "2": cs = CheckStates.Approved; break; case "3": cs = CheckStates.UnApproved; break; default: break; } var entityInfo = EntityInfoList.Where(t => t.Type == strModelCode).FirstOrDefault(); strTypeName = entityInfo.Type; strKeyName = entityInfo.KeyName; /////add 2012.12.12 /////传入报销月份为时间去和当前时间判断,如果不在同一年 /////说明该报销单是跨年的,则不能进行审核操作,即当年的报销单只能在当年进行报销 //if (dNewCheckStates == FBAEnums.CheckStates.Approved || dNewCheckStates == FBAEnums.CheckStates.Approving) //{ // if (IsOverYear(entity.BUDGETARYMONTH)) // { // strMsg = "报销单跨年后只能终审不通过(财务规定)"; // Tracer.Debug(strMsg); // return; // } //} using (FBCommonBLL bllCommon = new FBCommonBLL()) { bllCommon.BeginTransaction(); SystemBLL.Debug("BeginTransaction " + strModelCode + " 的单据[" + orderID + "]"); try { QueryExpression qe = QueryExpression.Equal(strKeyName, orderID); qe.QueryType = strTypeName; var data = qe.Query(bllCommon); var order = data.FirstOrDefault(); if (order == null) { strMsg = "没有可操作的数据"; return(-1); } bllCommon.AuditFBEntityWithoutFlow(order, cs, ref strMsg); i = 1; if (string.IsNullOrEmpty(strMsg)) { bllCommon.CommitTransaction(); SystemBLL.Debug("CommitTransaction " + strModelCode + " 的单据[" + orderID + "]"); } else { bllCommon.RollbackTransaction(); SystemBLL.Debug("RollbackTransaction 审核" + strModelCode + "的单据[" + orderID + "]失败,提示消息为:" + strMsg); } } catch (Exception ex) { bllCommon.RollbackTransaction(); SystemBLL.Debug("RollbackTransaction 审核" + strModelCode + "的单据[" + orderID + "]失败,提示消息为:" + strMsg); throw ex; } } } catch (Exception ex) { strMsg = "单据审核异常,请联系管理员"; throw ex; } // 把消息通过异常机制返回 if (!string.IsNullOrWhiteSpace(strMsg)) { SystemBLL.Debug("审核" + strModelCode + "的单据[" + orderID + "]失败,提示消息为:" + strMsg); throw new Exception(strMsg); } return(i); }
public AuditResult AuditFBEntity(FBEntity fbEntity, CheckStates checkStates) { try { using (FBCommonBLL fbCommonBLL = new FBCommonBLL()) { return fbCommonBLL.AuditFBEntity(fbEntity, checkStates); } } catch (Exception ex) { Tracer.Debug(ex.ToString()); throw ex; } }
/// <summary> /// 保存预算申请单 /// </summary> /// <param name="statates">当前表单状态</param> public void Save(CheckStates statates) { List <string> listMsg = this.OnSaveCheck(); if (listMsg.Count > 0) { OnSaveCompleted(listMsg); return; } this.GetValue(); if (statates == CheckStates.Delete) { ExtensionalOrderFBEntity.FBEntityState = FBEntityState.Detached; } // else if如果是重新提交,如果当前单据是审核不通过的状态才可以重新提交,否则提示异常。 // 需处理 this.Order.CHECKSTATES 为提交状态,并this.CurrentOrderEntity.FBEntityState 为重新提交 else { if (submitFBFormTypes == FormTypes.Audit && statates == CheckStates.Approving) { return; } this.ExtensionalOrder.CHECKSTATES = Convert.ToDecimal((int)statates); if (submitFBFormTypes == FormTypes.Resubmit) { this.ExtensionalOrderFBEntity.FBEntityState = FBEntityState.ReSubmit; } else { if (this.ExtensionalOrderFBEntity.FBEntityState == FBEntityState.Unchanged) { this.ExtensionalOrderFBEntity.FBEntityState = FBEntityState.Modified; } } } if (this.IsFromFB) { QueryExpression qeSave = this.GetOrderQueryExp(); SaveEntity se = new SaveEntity(); se.QueryExpression = qeSave; se.FBEntity = ExtensionalOrderFBEntity; FBServiceLoacal.SaveEntityAsync(se); } else { ObservableCollection <SMT.Saas.Tools.WpServiceWS.BussinessTripBudget> listTripBudget = new ObservableCollection <Saas.Tools.WpServiceWS.BussinessTripBudget>(); foreach (var itemRM in ExtensionalOrderFBEntity.CollectionEntity) { if (itemRM.EntityType == typeof(T_FB_EXTENSIONORDERDETAIL).Name || itemRM.EntityType == "T_FB_EXTENSIONORDERDETAIL_Travel") { foreach (var item in itemRM.FBEntities) { SMT.Saas.Tools.WpServiceWS.BussinessTripBudget saveItem = new Saas.Tools.WpServiceWS.BussinessTripBudget(); T_FB_EXTENSIONORDERDETAIL detail = item.Entity as T_FB_EXTENSIONORDERDETAIL; //saveItem.SubjectID = detail.T_FB_SUBJECT.SUBJECTID; saveItem.SubjectName = detail.T_FB_SUBJECT.SUBJECTNAME; saveItem.SubjectCode = detail.T_FB_SUBJECT.SUBJECTCODE; saveItem.PaidMoney = detail.APPLIEDMONEY; saveItem.UseMoney = detail.USABLEMONEY.Value; saveItem.NormName = detail.REMARK; //摘要 saveItem.NormID = detail.T_FB_SUBJECT.SUBJECTID; //摘要 if (string.IsNullOrEmpty(saveItem.NormID)) { MessageBox.Show("工作计划保存科目Id失败,请联系管理员!"); } listTripBudget.Add(saveItem); } } } string msg = string.Empty; WpServiceClient.TripSubjectSaveAsync(strBussinessTripID, listTripBudget, msg); } }
/// <summary> /// /// </summary> /// <param name="SysType">系统类型</param> /// <param name="EntityType">实体类型</param> /// <param name="EntityKey">实体主键名</param> /// <param name="EntityId">主键ID</param> /// <param name="CheckState">审核状态</param> /// <param name="message">业务服务的反馈消息</param> /// <returns></returns> public static bool UpdateFormCheckState(string SysType, string EntityType, string EntityKey, string EntityId, CheckStates CheckState, ref string message, string strXmlParams) { bool result = false; try { result = InnerUpdateFormCheckState(SysType, EntityType, EntityKey, EntityId, CheckState, ref message, strXmlParams); } catch (Exception ex) { message = ex.Message; result = false; Tracer.Debug("流程引擎需要回滚,审核异常:模块代码:" + SysType + " 模块id:" + EntityId + " 审核状态:" + CheckState + " 错误消息:" + ex.ToString()); } return result; }
/// <summary> /// /// </summary> /// <param name="SysType">系统类型</param> /// <param name="EntityType">实体类型</param> /// <param name="EntityKey">实体主键名</param> /// <param name="EntityId">主键ID</param> /// <param name="CheckState">审核状态</param> /// <returns></returns> public static bool InnerUpdateFormCheckState(string SysType, string EntityType, string EntityKey, string EntityId, CheckStates CheckState, ref string message, string strXmlParams) { bool IsResult = false; try { Tracer.Debug("系统名称:" + SysType); Tracer.Debug("手机版修改审核状态UpdateFormCheckState" + "实体名: " + EntityType); Tracer.Debug("表单ID名:" + EntityKey + "表单值:" + EntityId); Tracer.Debug("审核状态:" + ((int)CheckState).ToString()); Tracer.Debug("XML:" + strXmlParams); switch (SysType) { case "EDM": Tracer.Debug("调用了进销存中的:" + EntityType); EDMUpdateCheckStateWS.EDMUpdateCheckStateClient Client = new EDMUpdateCheckStateWS.EDMUpdateCheckStateClient(); int i = Client.UpdateCheckState(EntityType, EntityKey, EntityId, ((int)CheckState).ToString()); //Tracer.Debug("手机版调用人力资源管理审核状态UpdateFormCheckState" + System.DateTime.Now.ToString()); if (i > 0) { IsResult = true; } break; } if (SysType == "HR") { //OrgClient = new OrganizationWS.OrganizationServiceClient(); Tracer.Debug("调用了人力资源中的:" + EntityType); HrUpdateCheckStateWS.HRUpdateCheckStateServicesClient hrClient = new HrUpdateCheckStateWS.HRUpdateCheckStateServicesClient(); int i = hrClient.UpdateCheckState(EntityType, EntityKey, EntityId, ((int)CheckState).ToString()); //Tracer.Debug("手机版调用人力资源管理审核状态UpdateFormCheckState" + System.DateTime.Now.ToString()); if (i > 0) { IsResult = true; } } if (SysType == "OA") { //OrgClient = new OrganizationWS.OrganizationServiceClient(); Tracer.Debug("调用了办公系统中的:" + EntityType); if (EntityType.ToUpper() == "T_OA_GIFTAPPLYMASTER") { GSCommonWS.GSCommonServicesClient gsClient = new GSCommonWS.GSCommonServicesClient(); var iresult = gsClient.UpdateCheckState(EntityType, EntityId, ((int)CheckState).ToString(), ref message); if (iresult > 0) { IsResult = true; } } else { OAUpdateCheckWS.OAUpdateCheckServicesClient oaClient = new OAUpdateCheckWS.OAUpdateCheckServicesClient(); int i = oaClient.UpdateCheckState(EntityType, EntityKey, EntityId, ((int)CheckState).ToString()); //Tracer.Debug("手机版调用办公自动化审核状态UpdateFormCheckState" + System.DateTime.Now.ToString()); if (i > 0) { IsResult = true; } } } if (SysType == "FB") { //日常管理的状态改动 if (EntityType == "T_FB_BORROWAPPLYMASTER" || EntityType == "T_FB_CHARGEAPPLYMASTER" || EntityType == "T_FB_REPAYAPPLYMASTER") { Tracer.Debug("调用了日常管理中的:" + EntityType); FbDailyUpdateCheckStateWS.DailyUpdateCheckStateServiceClient fbaClient = new FbDailyUpdateCheckStateWS.DailyUpdateCheckStateServiceClient(); int i = fbaClient.UpdateCheckState(EntityType, EntityKey, EntityId, ((int)CheckState).ToString()); if (i > 0) { IsResult = true; } } else { string strMsg = string.Empty; Tracer.Debug("调用了预算中的:" + EntityType); FBServiceWS.FBServiceClient fbClient = new FBServiceWS.FBServiceClient(); int i = fbClient.UpdateCheckState(EntityType, EntityId, ((int)CheckState).ToString(), ref strMsg); if (i > 0) { IsResult = true; } } } if (SysType == "RM") { //OrgClient = new OrganizationWS.OrganizationServiceClient(); Tracer.Debug("调用了招聘系统中的:" + EntityType); RMServicesClient rmClient = new RMServicesClient(); int i = rmClient.UpdateCheckState(EntityType, EntityKey, EntityId, ((int)CheckState), strXmlParams); if (i > 0) { IsResult = true; } } if (SysType == "WP") { WPServicesWS.WPServicesClient wpClient = new WPServicesClient(); Tracer.Debug("调用了工作计划中的:EntityType:" + EntityType + " EntityKey:" + EntityKey + "\r\n" + " EntityId:" + EntityId + " CheckState:" + CheckState + " URL:" + wpClient.Endpoint.Address); Tracer.Debug("(int)CheckState):" + ((int)CheckState).ToString()); int i = wpClient.UpdateCheckState(EntityType, EntityKey, EntityId, ((int)CheckState), strXmlParams, ref message); Tracer.Debug("调用工作计划返回结果" + i.ToString() + "\r\n" + message); if (i > 0) { IsResult = true; } } if (SysType == "TM") { //OrgClient = new OrganizationWS.OrganizationServiceClient(); TMServicesWS.TMServicesClient tmClient = new TMServicesClient(); Tracer.Debug("调用了培训系统中的:EntityType:" + EntityType + " EntityKey:" + EntityKey + "\r\n" + " EntityId:" + EntityId + " CheckState:" + CheckState + " URL:" + tmClient.Endpoint.Address); int i = tmClient.UpdateCheckState(EntityType, EntityKey, EntityId, ((int)CheckState), strXmlParams); Tracer.Debug("调用培训系统返回结果" + i.ToString()); if (i > 0) { IsResult = true; } } //考试系统 if (SysType == "EM") { EMServiceWS.EMServicesClient emClient = new EMServiceWS.EMServicesClient(); Tracer.Debug("调用了考试系统中的:EntityType:" + EntityType + " EntityKey:" + EntityKey + "\r\n" + " EntityId:" + EntityId + " CheckState:" + CheckState + " URL:" + emClient.Endpoint.Address + " strXmlParams:" + strXmlParams); int i = emClient.UpdateCheckState(EntityType, EntityKey, EntityId, ((int)CheckState), strXmlParams); Tracer.Debug("调用考试系统返回结果" + i.ToString()); if (i > 0) { IsResult = true; } } if (SysType == "VM") { VMServiceWS.VMServicesClient vmClient = new VMServiceWS.VMServicesClient(); Tracer.Debug("调用了车辆系统中的:EntityType:" + EntityType + " EntityKey:" + EntityKey + "\r\n" + " EntityId:" + EntityId + " CheckState:" + CheckState + " URL:" + vmClient.Endpoint.Address + " strXmlParams:" + strXmlParams); int i = vmClient.UpdateCheckState(EntityType, EntityKey, EntityId, ((int)CheckState), strXmlParams); Tracer.Debug("调用车辆系统返回结果" + i.ToString()); if (i > 0) { IsResult = true; } } if (SysType == "TK") { TKServicesWS.TKServicesClient tkClient = new TKServicesWS.TKServicesClient(); Tracer.Debug("调用了任务系统中的:EntityType:" + EntityType + " EntityKey:" + EntityKey + "\r\n" + " EntityId:" + EntityId + " CheckState:" + CheckState + " URL:" + tkClient.Endpoint.Address + " strXmlParams:" + strXmlParams); int i = 0;// tkClient.UpdateCheckState(EntityType, EntityKey, EntityId, ((int)CheckState), strXmlParams, ref message); Tracer.Debug("调用任务系统返回结果" + i.ToString() + "\r\n" + message); if (i > 0) { IsResult = true; } } } catch (BLLException bex) { Tracer.Debug("BLLException--手机版修改审核状态UpdateFormCheckState" + System.DateTime.Now.ToString() + " " + bex.ToString()); throw bex; } catch (Exception ex) { Tracer.Debug("手机版修改审核状态UpdateFormCheckState" + System.DateTime.Now.ToString() + " " + ex.ToString()); throw (ex); } return IsResult; }
public static string GetCheckState(CheckStates checkState) { return(((int)checkState).ToString()); }