コード例 #1
0
ファイル: Reference.cs プロジェクト: Novthirteen/sih-les
 /// <remarks/>
 public void MI_POCANCLE_LESAsync(ZSPOCOMF_YZ INPUT, object userState) {
     if ((this.MI_POCANCLE_LESOperationCompleted == null)) {
         this.MI_POCANCLE_LESOperationCompleted = new System.Threading.SendOrPostCallback(this.OnMI_POCANCLE_LESOperationCompleted);
     }
     this.InvokeAsync("MI_POCANCLE_LES", new object[] {
                 INPUT}, this.MI_POCANCLE_LESOperationCompleted, userState);
 }
コード例 #2
0
        public void CancelReportProdOrderOperation(string AUFNR, string TEXT)
        {
            try
            {
                #region 生产单报工已经传给SAP
                log.DebugFormat("开始连接Web服务进行取消生产报工, 生产单号{0}, 行号{1}", AUFNR, TEXT);

                #region 取消报工传给SAP
                MI_POCANCLE_LESService service = new MI_POCANCLE_LESService();
                service.Credentials = base.Credentials;
                service.Timeout = base.TimeOut;
                service.Url = ReplaceSAPServiceUrl(service.Url);

                ZSPOCOMF_YZ input = new ZSPOCOMF_YZ();
                input.AUFNR = AUFNR;
                input.CONF_TEXT = TEXT;

                string result = service.MI_POCANCLE_LES(input);
                #endregion

                #region 判断返回结果
                if (result.Equals("TRUE", StringComparison.OrdinalIgnoreCase))
                {
                    log.DebugFormat("取消生产报工成功, 生产单号{0}, 行号{1}", AUFNR, TEXT);
                }
                else
                {
                    string logMessage = string.Format("取消生产报工失败, 生产单号{0}, 行号{1},失败信息:{2}", AUFNR, TEXT, result);
                    log.Error(logMessage);

                    throw new BusinessException(result);
                }
                #endregion
                #endregion
            }
            catch (Exception ex)
            {
                string logMessage = string.Format("取消生产报工异常, 生产单号{0}, 行号{1},异常信息:{2}", AUFNR, TEXT, ex.Message);
                log.Error(logMessage, ex);

                throw new BusinessException(logMessage);
            }
        }
コード例 #3
0
ファイル: Reference.cs プロジェクト: Novthirteen/sih-les
 /// <remarks/>
 public void MI_POCANCLE_LESAsync(ZSPOCOMF_YZ INPUT) {
     this.MI_POCANCLE_LESAsync(INPUT, null);
 }