|
|
@@ -540,6 +540,61 @@ namespace Dongke.IBOSS.PRD.WCF.Services
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
+ /// 是否跨月
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="accountCode">帐套code</param>
|
|
|
+ /// <param name="userCode">用户code</param>
|
|
|
+ /// <param name="userPassword">用户密码</param>
|
|
|
+ /// <param name="sessionKey">本次登陆密钥</param>
|
|
|
+ /// <param name="procedureID">工序ID</param>
|
|
|
+ /// <param name="barcode">条码</param>
|
|
|
+ /// <returns></returns>
|
|
|
+ /// <remarks>
|
|
|
+ /// 陈冰 2014.09.18 新建
|
|
|
+ /// </remarks>
|
|
|
+ public ActionResult CheckBarcodeChangeMonth(string accountCode, string userCode, string userPassword, string sessionKey, int procedureID, string barcode)
|
|
|
+ {
|
|
|
+ ActionResult actionResult = new ActionResult();
|
|
|
+ try
|
|
|
+ {
|
|
|
+ // 验证请求头信息
|
|
|
+ actionResult = this.DoPDACheck(accountCode, userCode, userPassword, sessionKey);
|
|
|
+
|
|
|
+ // 验证失败
|
|
|
+ if (actionResult.Status != (int)Constant.PDAResult.Success)
|
|
|
+ {
|
|
|
+ return actionResult;
|
|
|
+ }
|
|
|
+
|
|
|
+ DataSet barcodeDataSet = ServiceInvoker.Invoke<DataSet>(this,
|
|
|
+ () => PMModuleLogic.CheckBarcodeChangeMonthPDA(procedureID, barcode, sUserInfo));
|
|
|
+
|
|
|
+ if (barcodeDataSet != null && barcodeDataSet.Tables.Count > Constant.INT_IS_ZERO)
|
|
|
+ {
|
|
|
+ actionResult.Result = JsonHelper.ToJson(barcodeDataSet.Tables[0]);
|
|
|
+ actionResult.Status = (int)Constant.PDAResult.Success;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ actionResult.Status = (int)Constant.PDAResult.Fail;
|
|
|
+ actionResult.Message = Constant.PDA_RESULT_UNKNOWN_ERR;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ catch (Exception ex)
|
|
|
+ {
|
|
|
+ //LogFileOperation.Error(DataManager.LogFileName, ex.Message);
|
|
|
+ OutputLog.TraceLog(LogPriority.Error,
|
|
|
+ this.ToString(),
|
|
|
+ System.Reflection.MethodBase.GetCurrentMethod().Name,
|
|
|
+ ex.ToString(),
|
|
|
+ LocalPath.LogExePath);
|
|
|
+ actionResult.Status = (int)Constant.PDAResult.Exception;
|
|
|
+ actionResult.Message = Constant.PDA_RESULT_EXCEPTION;
|
|
|
+ }
|
|
|
+ return actionResult;
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
/// 校验产品条码是否可以进行干补
|
|
|
/// </summary>
|
|
|
/// <param name="accountCode">帐套code</param>
|