public JsonResult Confirm(string guid, DateTime? fhrq, string gz)
        {
            var result = new PreLoadCabinetEditModel
            {
                IsSuccess = true
            };
            try
            {
                var user = AccountHelper.GetLoginUserInfo(HttpContext.User.Identity);
                string message = PreLoadCabinetManager.Instance.Confirm(
                    guid, user.CustomerCode, fhrq, user.LoginName, gz);
                if (!String.IsNullOrEmpty(message))
                { 
                    result.Message = message; 
                }
            }
            catch (Exception ex)
            {
                result.IsSuccess = false;
                result.Message = ex.ToString();
            }

            return this.Json(result);
        }
        public JsonResult Save(PreLoadCabinet model)
        {
            var result = new PreLoadCabinetEditModel
            {
                IsSuccess = true
            };
            try
            {
                var user = AccountHelper.GetLoginUserInfo(HttpContext.User.Identity);
                model.CustomerCode = user.CustomerCode;

                PreLoadCabinetManager.Instance.Save(model);
                result.Filled = PreLoadCabinetManager.Instance.GetFilled(user.CustomerCode, model.TGuid, model.ContainerType);
                PreLoadCabinetManager.Instance.UpdateBfb(model.TGuid, result.Filled);

            }
            catch (Exception ex)
            {
                result.IsSuccess = false;
                result.Message = ex.ToString();
            }
            return this.Json(result);
        }