Exemplo n.º 1
0
        /// <summary>
        /// 记录生产日志
        /// </summary>
        /// <param name="lType"></param>
        /// <returns></returns>
        public static ResultModel SetProduceLog(ProduceLogTypeEnum lType, int quantity = 0, PauseResonEnum pReson = PauseResonEnum.Other)
        {
            string url       = uri + "PostProduceLog";
            object parameter = new
            {
                WorkTicketCode = StoreInfo.CurrentWorkingTicket.WorkTicketCode,
                UserCode       = StoreInfo.UserCode,
                UserName       = StoreInfo.UserName,
                Quantity       = quantity,
                Type           = (int)lType,
                PauseReson     = (int)pReson
            };

            return(HttpHelper.PostTByUrl <ResultModel>(url, parameter));
        }
Exemplo n.º 2
0
        /// <summary>
        /// 记录生产日志
        /// </summary>
        /// <param name="type"></param>
        /// <returns></returns>
        public ResultModel ProduceLog(ProduceLogTypeEnum type, ProduceProceInfoBLL.PauseResonEnum pauseReson = ProduceProceInfoBLL.PauseResonEnum.Other)
        {
            string url       = string.Format(@"http://{0}/api/Mms/WinFormClient/PostProduceLog", ConfigInfoModel.API);
            object parameter = new
            {
                //APSCode = StoreInfoModel.ProducePlanInfo.GetProjectProduceDetial.ApsCode,
                APSCode       = StoreInfoModel.ProducePlanInfo.GetProjectProduceDetial.WorkTicketCode,
                CreatePerson  = StoreInfoModel.WorkGroupInfo.GetWorkGroupDetail.UserName,
                OperatePerson = StoreInfoModel.WorkGroupInfo.GetWorkGroupDetail.UserName,
                OpreateCode   = StoreInfoModel.WorkGroupInfo.GetWorkGroupDetail.UserCode,
                ModifyPerson  = StoreInfoModel.WorkGroupInfo.GetWorkGroupDetail.UserName,
                //FinishQuantity = StoreInfoModel.ProducePlanInfo.GetProjectProduceDetial.Quantity,
                FinishQuantity = StoreInfoModel.ProducePlanInfo.GetProjectProduceDetial.WorkQuantity,
                Type           = (int)type,
                PauseReson     = (int)pauseReson
            };

            return(Helpers.HttpHelper.PostTByUrl <ResultModel>(url, parameter));
        }