| | |
| | | /// </summary> |
| | | /// <param name="input"></param> |
| | | /// <returns></returns> |
| | | public ApiAction GetBasItem(U9C_MES_Input input) |
| | | public ApiAction GetBasItem(U9C_Base_Input input) |
| | | { |
| | | var action = new ApiAction(); |
| | | Logger.Scheduler.Info($"物料信息开始同步。。。数据检查进行中。。。"); |
| | |
| | | /// <param name="input"></param> |
| | | /// <returns></returns> |
| | | /// <exception cref="NotImplementedException"></exception> |
| | | public ApiAction GetCustomer(U9C_MES_Input input) |
| | | public ApiAction GetCustomer(U9C_Base_Input input) |
| | | { |
| | | var action = new ApiAction(); |
| | | Logger.Scheduler.Info($"客户信息开始同步。。。数据检查进行中。。。"); |
| | |
| | | /// </summary> |
| | | /// <param name="input"></param> |
| | | /// <returns></returns> |
| | | public ApiAction GetSupplier(U9C_MES_Input input) |
| | | public ApiAction GetSupplier(U9C_Base_Input input) |
| | | { |
| | | var action = new ApiAction(); |
| | | Logger.Scheduler.Info($"供应商信息开始同步。。。数据检查进行中。。。"); |
| | |
| | | /// </summary> |
| | | /// <param name="input"></param> |
| | | /// <returns></returns> |
| | | public ApiAction GetCustBarCode(U9C_MES_Input input) |
| | | public ApiAction GetCustBarCode(U9C_Base_Input input) |
| | | { |
| | | var action = new ApiAction(); |
| | | Logger.Scheduler.Info($"客户条码信息开始同步。。。数据检查进行中。。。"); |
| | |
| | | return action; |
| | | } |
| | | |
| | | public ApiAction GetU9CBasWo(U9C_MES_Input input) |
| | | public ApiAction GetU9CBasWo(U9C_Base_Input input) |
| | | { |
| | | var action = new ApiAction(); |
| | | Logger.Scheduler.Info($"工单信息开始同步。。。数据检查进行中。。。"); |
| | |
| | | } |
| | | }); |
| | | } |
| | | return action; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 同步物料条码信息 |
| | | /// </summary> |
| | | /// <param name="input"></param> |
| | | /// <returns></returns> |
| | | public ApiAction GetMaterialBarCode(U9C_MES_Input input) |
| | | { |
| | | var action = new ApiAction(); |
| | | Logger.Scheduler.Info($"物料条码信息开始同步。。。数据检查进行中。。。"); |
| | | Logger.Scheduler.Info($"{input.triggerDetail}"); |
| | | DbClient db = Biz.DataSource["YadaU9C"].Client; |
| | | try |
| | | { |
| | | var list = db.Queryable<mes_MaterialBarCodeByBin>().Where("ModifiedOn > @startTime And ModifiedOn < @endTime", new { startTime = input.startTime, endTime = input.endTime }).ToList(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | action.CatchExceptionWithLog(ex, Biz.L(ex.Message)); |
| | | } |
| | | |
| | | return action; |
| | | } |
| | | } |