private void Bind()
        {
            BindControl bc = new BindControl();

            bc.BindDdl(ddlOrderReceiptStatus, typeof(EnumData.EnumReceiptOrderStatus), EnumData.EnumReceiptOrderStatus.新建.ToString());
            bc.BindDdl(ddlOrderReceiptType, typeof(EnumData.EnumReceiptOrderType), EnumData.EnumReceiptOrderType.采购入库.ToString());
        }
Exemple #2
0
        private void Bind()
        {
            Guid Id = Guid.Empty;

            if (!string.IsNullOrWhiteSpace(Request.QueryString["Id"]))
            {
                Guid.TryParse(Request.QueryString["Id"], out Id);
            }

            BindControl bc = new BindControl();

            var bll = new Product();

            if (!Id.Equals(Guid.Empty))
            {
                var model = bll.GetModel(Id);
                if (model != null)
                {
                    hId.Value                = model.Id.ToString();
                    hCategoryId.Value        = model.CategoryId.ToString();
                    txtProductCode.Value     = model.ProductCode;
                    txtProductName.Value     = model.ProductName;
                    txtFullName.Value        = model.FullName;
                    txtSpecs.Value           = model.Specs;
                    txtPrice.Value           = model.Price.ToString();
                    txtMaterialQuality.Value = model.MaterialQuality;
                    txtWeight.Value          = model.Weight.ToString();
                    txtMaxStore.Value        = model.MaxStore.ToString();
                    txtMinStore.Value        = model.MinStore.ToString();
                    txtOutPackVolume.Value   = model.OutPackVolume.ToString();
                    txtOutPackWeight.Value   = model.OutPackWeight.ToString();
                    txtInPackVolume.Value    = model.InPackVolume.ToString();
                    txtInPackWeight.Value    = model.InPackWeight.ToString();
                    txtOutPackQty.Value      = model.OutPackQty.ToString();
                    txtInPackQty.Value       = model.InPackQty.ToString();
                    txtShelfLife.Value       = model.ShelfLife.ToString();
                    cbbSupplier.Value        = model.SupplierId.ToString();
                    txtSort.Value            = model.Sort.ToString();
                    txtRemark.Value          = model.Remark;

                    bc.BindDdl(ddlIsDisable, typeof(EnumData.EnumIsDisable), model.IsDisable ? "禁用":"启用", "");
                }
            }
            else
            {
                bc.BindDdl(ddlIsDisable, typeof(EnumData.EnumIsDisable), "", "");

                var categoryId = Guid.Empty;
                if (!string.IsNullOrWhiteSpace(Request.QueryString["categoryId"]))
                {
                    Guid.TryParse(Request.QueryString["categoryId"], out categoryId);
                }
                if (!categoryId.Equals(Guid.Empty))
                {
                    txtProductCode.Value = bll.CreateCode(categoryId);
                }
            }
        }
Exemple #3
0
        private void BindUnit()
        {
            BindControl bc = new BindControl();

            bc.BindDdl(ddlPiece, typeof(EnumData.EnumUnitLevel), EnumData.EnumUnitLevel.件.ToString());
            bc.BindDdl(ddlInsidePackage, typeof(EnumData.EnumUnitLevel), EnumData.EnumUnitLevel.内包装.ToString());
            bc.BindDdl(ddlBox, typeof(EnumData.EnumUnitLevel), EnumData.EnumUnitLevel.箱.ToString());
            bc.BindDdl(ddlTray, typeof(EnumData.EnumUnitLevel), EnumData.EnumUnitLevel.托盘.ToString());
        }
Exemple #4
0
        private void BindCtr()
        {
            BindControl bc = new BindControl();

            if (!string.IsNullOrWhiteSpace(Request.QueryString["isBack"]))
            {
                bc.BindDdl(ddlSIsBack, typeof(EnumData.EnumIsOk), Request.QueryString["isBack"] == "1" ? "是" : "否");
            }
            else
            {
                bc.BindDdl(ddlSIsBack, typeof(EnumData.EnumIsOk), "");
            }
            bc.BindDdl(ddlSWhetherFix, typeof(EnumData.EnumWhetherFix), Request.QueryString["whetherFix"]);
        }
Exemple #5
0
        private void Bind()
        {
            BindControl bc = new BindControl();

            Guid Id = Guid.Empty;

            if (!string.IsNullOrWhiteSpace(Request.QueryString["Id"]))
            {
                Guid.TryParse(Request.QueryString["Id"], out Id);
            }
            if (!Id.Equals(Guid.Empty))
            {
                var bll   = new InfoneDeviceRepairRecord();
                var model = bll.GetModel(Id);
                if (model != null)
                {
                    hId.Value                   = model.Id.ToString();
                    txtRecordDate.Value         = model.RecordDate.ToString("yyyy-MM-dd").Replace("1754-01-01", "");
                    txtCustomer.Value           = model.Customer;
                    txtSerialNumber.Value       = model.SerialNumber;
                    txtDeviceModel.Value        = model.DeviceModel;
                    txtFaultCause.Value         = model.FaultCause;
                    txtSolveMethod.Value        = model.SolveMethod;
                    txtCustomerProblem.Value    = model.CustomerProblem;
                    txtDevicePart.Value         = model.DevicePart;
                    txtTreatmentSituation.Value = model.TreatmentSituation;
                    txtHandoverPerson.Value     = model.HandoverPerson;
                    txtBackDate.Value           = model.BackDate.ToString("yyyy-MM-dd").Replace("1754-01-01", "");
                    txtRegisteredPerson.Value   = model.RegisteredPerson;
                    txtRemark.Value             = model.Remark;

                    bc.BindDdl(ddlIsBack, typeof(EnumData.EnumIsOk), model.IsBack ? "是" : "否", "");
                    bc.BindDdl(ddlWhetherFix, typeof(EnumData.EnumWhetherFix), model.WhetherFix, "");
                }
            }
            else
            {
                bc.BindDdl(ddlIsBack, typeof(EnumData.EnumIsOk), "", "");
                bc.BindDdl(ddlWhetherFix, typeof(EnumData.EnumWhetherFix), "", "");
            }
        }
        private void Bind()
        {
            Guid Id = Guid.Empty;

            if (!string.IsNullOrWhiteSpace(Request.QueryString["Id"]))
            {
                Guid.TryParse(Request.QueryString["Id"], out Id);
            }
            BindControl bc = new BindControl();

            if (!Id.Equals(Guid.Empty))
            {
                var bll   = new OrderReceiptProduct();
                var model = bll.GetModelByJoin(Id);
                if (model != null)
                {
                    hOrderProductId.Value             = model.Id.ToString();
                    hProductId.Value                  = model.ProductId.ToString();
                    hPackageId.Value                  = model.PackageId.ToString();
                    txtExpectedQty.Value              = model.ExpectedQty.ToString();
                    txtReceiptQty.Value               = model.ReceiptQty.ToString();
                    txtProductPurchaseOrderCode.Value = model.PurchaseOrderCode;
                    txtSort.Value           = model.Sort.ToString();
                    txtaProductRemark.Value = model.Remark;
                    txtPackageName.Value    = model.PackageName;
                    txtSupplierName.Value   = model.SupplierName;
                    txtProduceDate.Value    = model.ProduceDate;
                    txtQualityStatus.Value  = model.QualityStatus;
                    txtCheckQuantity.Value  = model.CheckQuantity.ToString();
                    txtRejectQuantity.Value = model.RejectQuantity.ToString();
                    txtQCStatus.Value       = model.QCStatus;

                    txtProduct.Value = model.ProductCode;
                    txtPackage.Value = model.PackageCode;

                    bc.BindDdl(ddlOrderReceiptStatus, typeof(EnumData.EnumReceiptOrderStatus), model.Status);
                    bc.BindDdl(ddlUnit, typeof(EnumData.EnumUnitLevel), model.Unit);
                    bc.BindDdl(ddlIsOk, typeof(EnumData.EnumIsOk), model.IsQCNeed ? "是":"否");
                }
            }
            else
            {
                hProductId.Value = Guid.Empty.ToString();
                hPackageId.Value = Guid.Empty.ToString();

                bc.BindDdl(ddlOrderReceiptStatus, typeof(EnumData.EnumReceiptOrderStatus), EnumData.EnumReceiptOrderStatus.新建.ToString());
                bc.BindDdl(ddlUnit, typeof(EnumData.EnumUnitLevel), "");
                bc.BindDdl(ddlIsOk, typeof(EnumData.EnumIsOk), "");
            }
        }
Exemple #7
0
        private void Bind()
        {
            Guid Id = Guid.Empty;

            if (!string.IsNullOrWhiteSpace(Request.QueryString["Id"]))
            {
                Guid.TryParse(Request.QueryString["Id"], out Id);
            }
            if (!Id.Equals(Guid.Empty))
            {
                Page.Title = "编辑库位";
                var bll   = new StockLocation();
                var model = bll.GetModelByJoin(Id);
                if (model != null)
                {
                    hId.Value                 = model.Id.ToString();
                    hZoneId.Value             = model.ZoneId.ToString();
                    txtCode.Value             = model.Code;
                    txtName.Value             = model.Named;
                    txtZone.Value             = model.ZoneCode;
                    txtRow.Value              = model.Row.ToString();
                    txtLayer.Value            = model.Layer.ToString();
                    txtCol.Value              = model.Col.ToString();
                    txtPassway.Value          = model.Passway.ToString();
                    txtWidth.Value            = model.Width.ToString();
                    txtWide.Value             = model.Wide.ToString();
                    txtHigh.Value             = model.High.ToString();
                    txtVolume.Value           = model.Volume.ToString();
                    txtCubage.Value           = model.Cubage.ToString();
                    txtStackLimit.Value       = model.StackLimit.ToString();
                    txtCarryWeight.Value      = model.CarryWeight.ToString();
                    txtX.Value                = model.Xc.ToString();
                    txtY.Value                = model.Yc.ToString();
                    txtZ.Value                = model.Zc.ToString();
                    txtOrientation.Value      = model.Orientation.ToString();
                    txtGroundTrayQty.Value    = model.GroundTrayQty.ToString();
                    txtRouteSeq.Value         = model.RouteSeq;
                    txtInsertTaskSeq.Value    = model.InsertTaskSeq.ToString();
                    txtStatus.Value           = model.Status;
                    txtWarehouse.Value        = model.Warehouse;
                    txtLevelNum.Value         = model.LevelNum.ToString();
                    txtPickArea.Value         = model.PickArea;
                    txtInventoryGroupId.Value = model.InventoryGroupId.ToString();
                    txtPickMethod.Value       = model.PickMethod;

                    BindControl bc = new BindControl();
                    bc.BindDdl(ddlIsMixPlace, typeof(EnumData.EnumIsOk), model.IsMixPlace.ToString());
                    bc.BindDdl(ddlIsBatchNum, typeof(EnumData.EnumIsOk), model.IsBatchNum.ToString());
                    bc.BindDdl(ddlIsLoseId, typeof(EnumData.EnumIsOk), model.IsLoseId.ToString());
                    bc.BindDdl(ddlStockLocationType, typeof(EnumData.EnumStockLocationType), model.StockLocationType);
                    bc.BindDdl(ddlCtrType, typeof(EnumData.EnumStockLocationCtrType), model.CtrType);
                    bc.BindDdl(ddlABC, typeof(EnumData.EnumAbc), model.ABC);
                    bc.BindDdl(ddlStockLocationDeal, typeof(EnumData.EnumStockLocationDeal), model.StockLocationDeal);
                    bc.BindDdl(ddlUseStatus, typeof(EnumData.EnumStockLocationUseStatus), model.UseStatus);
                }
            }
            else
            {
                txtWidth.Value            = "0.00000";
                txtWide.Value             = "0.00000";
                txtHigh.Value             = "0.00000";
                txtVolume.Value           = "0.00000";
                txtCubage.Value           = "0.00000";
                txtRow.Value              = "0.00000";
                txtLayer.Value            = "0.00000";
                txtCol.Value              = "0.00000";
                txtPassway.Value          = "0.00000";
                txtX.Value                = "0.00000";
                txtY.Value                = "0.00000";
                txtZ.Value                = "0.00000";
                txtOrientation.Value      = "0.00000";
                txtStackLimit.Value       = "0.00000";
                txtGroundTrayQty.Value    = "0.00000";
                txtCarryWeight.Value      = "0.00000";
                txtLevelNum.Value         = "0.00000";
                txtInsertTaskSeq.Value    = "0.00000";
                txtInventoryGroupId.Value = "0.00000";

                BindControl bc = new BindControl();
                bc.BindDdl(ddlIsMixPlace, typeof(EnumData.EnumIsOk), "");
                bc.BindDdl(ddlIsBatchNum, typeof(EnumData.EnumIsOk), "");
                bc.BindDdl(ddlIsLoseId, typeof(EnumData.EnumIsOk), "");
                bc.BindDdl(ddlStockLocationType, typeof(EnumData.EnumStockLocationType), "", "");
                bc.BindDdl(ddlCtrType, typeof(EnumData.EnumStockLocationCtrType), "", EnumData.EnumStockLocationCtrType.常规存储.ToString());
                bc.BindDdl(ddlABC, typeof(EnumData.EnumAbc), "", "");
                bc.BindDdl(ddlStockLocationDeal, typeof(EnumData.EnumStockLocationDeal), "", "");
                bc.BindDdl(ddlUseStatus, typeof(EnumData.EnumStockLocationUseStatus), "", "");
            }
        }