Пример #1
0
        protected override void SetPowerZone()
        {
            Spare2.DataSource     = BLL.C_Car.GetList(" IsDelete = 0 and CType='牵引车' order by ID");
            Spare2.DataTextField  = "PZCode";
            Spare2.DataValueField = "PZCode";
            Spare2.DataBind();

            CSpare2.DataSource     = BLL.C_Car.GetList(" IsDelete = 0 and CType='挂车' order by ID");
            CSpare2.DataTextField  = "PZCode";
            CSpare2.DataValueField = "PZCode";
            CSpare2.DataBind();
            ListItem lt = new ListItem();

            lt.Value = "";
            lt.Text  = "空项";
            CSpare2.Items.Insert(0, lt);

            CarSJ1.DataSource     = BLL.Member.ManageMember.GetMemberEntityList("  RoleCode='SiJi' AND FMID='1' AND IsClock=0 AND IsClose=0  order by ID");
            CarSJ1.DataTextField  = "MName";
            CarSJ1.DataValueField = "MID";
            CarSJ1.DataBind();
            CarSJ1.Items.Insert(0, "--请选择--");

            CarSJ2.DataSource     = BLL.Member.ManageMember.GetMemberEntityList("  RoleCode='SiJi' AND FMID IN('2','3') AND IsClock=0 AND IsClose=0  order by ID");
            CarSJ2.DataTextField  = "MName";
            CarSJ2.DataValueField = "MID";
            CarSJ2.DataBind();
            CarSJ2.Items.Insert(0, "--请选择--");
            if (!string.IsNullOrEmpty(Request.QueryString["oid"]))
            {
                ocode.Value = Request.QueryString["oid"];
                oid.Value   = Request.QueryString["oid"];
            }
        }
Пример #2
0
        protected override void SetPowerZone()
        {
            Spare2.DataSource     = BLL.C_Car.GetList(" IsDelete = 0 and CType='牵引车' order by ID");
            Spare2.DataTextField  = "PZCode";
            Spare2.DataValueField = "PZCode";
            Spare2.DataBind();

            CSpare2.DataSource     = BLL.C_Car.GetList(" IsDelete = 0 and CType='挂车' order by ID");
            CSpare2.DataTextField  = "PZCode";
            CSpare2.DataValueField = "PZCode";
            CSpare2.DataBind();
            //ListItem lt = new ListItem();
            //lt.Value = "";
            //lt.Text = "空项";
            //CSpare2.Items.Insert(0, lt);

            CarSJ1.DataSource     = BLL.Member.ManageMember.GetMemberEntityList("  RoleCode='SiJi' AND FMID='1' AND IsClock=0 AND IsClose=0  order by ID");
            CarSJ1.DataTextField  = "MName";
            CarSJ1.DataValueField = "MID";
            //CarSJ1.Items.Insert(0, "--请选择--");
            CarSJ1.DataBind();


            CarSJ2.DataSource     = BLL.Member.ManageMember.GetMemberEntityList("  RoleCode='SiJi' AND FMID IN('2','3') AND IsClock=0 AND IsClose=0  order by ID");
            CarSJ2.DataTextField  = "MName";
            CarSJ2.DataValueField = "MID";
            CarSJ2.DataBind();
            //CarSJ2.Items.Insert(0, "--请选择--");
            if (!string.IsNullOrEmpty(Request.QueryString["oid"]))
            {
                ocode.Value = Request.QueryString["oid"];
                oid.Value   = Request.QueryString["oid"];
            }
            if (!string.IsNullOrEmpty(Request.QueryString["id"]))
            {
                string          id  = Request.QueryString["id"];
                Model.C_CarTast car = BLL.C_CarTast.GetModel(Convert.ToInt32(id));
                Spare2.Value  = car.Spare2.ToString();
                CSpare2.Value = car.CSpare2.ToString();
                CarSJ1.Value  = car.CarSJ1.ToString();
                CarSJ2.Value  = car.CarSJ2.ToString();

                if (!string.IsNullOrEmpty(car.OCode))
                {
                    Model.OrderDetail od = BLL.OrderDetail.GetModelCode(car.OCode);
                    goodcount = od.GCount.ToString();
                    Model.Goods good = BLL.Goods.GetModel(od.GId.ToString());
                    goodname = good.GName;
                }
            }
        }
Пример #3
0
        protected override void SetPowerZone()
        {
            //CostType.DataSource = BLL.C_CostType.GetList(" 1 = 1  order by ID");
            //CostType.DataTextField = "Name";
            //CostType.DataValueField = "ID";
            //CostType.DataBind();


            txtGood.DataSource     = BLL.Goods.GetList(" IsDeleted = 0 order by GID");
            txtGood.DataTextField  = "GName";
            txtGood.DataValueField = "GID";
            txtGood.DataBind();

            Spare2.DataSource     = BLL.C_Car.GetList(" IsDelete = 0 and CType='牵引车' order by ID");
            Spare2.DataTextField  = "PZCode";
            Spare2.DataValueField = "PZCode";
            Spare2.DataBind();

            CSpare2.DataSource     = BLL.C_Car.GetList(" IsDelete = 0 and CType='挂车' order by ID");
            CSpare2.DataTextField  = "PZCode";
            CSpare2.DataValueField = "PZCode";
            CSpare2.DataBind();

            SupplierName.DataSource     = BLL.C_Supplier.GetList(" IsDelete = 0  and Type=1 order by ID");
            SupplierName.DataTextField  = "Name";
            SupplierName.DataValueField = "ID";
            SupplierName.DataBind();
            SupplierName.Items.Insert(0, "--请选择--");
            SupplierName2.DataSource     = BLL.C_Supplier.GetList(" IsDelete = 0  and Type=2  order by ID");
            SupplierName2.DataTextField  = "Name";
            SupplierName2.DataValueField = "ID";
            SupplierName2.DataBind();
            SupplierName2.Items.Insert(0, "--请选择--");
            SupplierName3.DataSource     = BLL.C_Supplier.GetList(" IsDelete = 0  order by ID");
            SupplierName3.DataTextField  = "Name";
            SupplierName3.DataValueField = "ID";
            SupplierName3.DataBind();
            SupplierName3.Items.Insert(0, "--请选择--");


            CarSJ1.DataSource     = BLL.Member.ManageMember.GetMemberEntityList("  RoleCode='SiJi' AND FMID='1' AND IsClock=0 AND IsClose=0  order by ID");
            CarSJ1.DataTextField  = "mname";
            CarSJ1.DataValueField = "MID";
            CarSJ1.DataBind();
            //CarSJ1.Items.Insert(0, "--请选择--");

            CarSJ2.DataSource     = BLL.Member.ManageMember.GetMemberEntityList("  RoleCode='SiJi' AND FMID IN('2','3') AND IsClock=0 AND IsClose=0  order by ID");
            CarSJ2.DataTextField  = "mname";
            CarSJ2.DataValueField = "MID";
            CarSJ2.DataBind();
            //CarSJ2.Items.Insert(0, "--请选择--");

            binddata(Request.QueryString["id"]);

            if (!string.IsNullOrEmpty(Request.QueryString["oid"]))
            {
                ocode.Value = Request.QueryString["oid"];
                oid.Value   = Request.QueryString["oid"];
            }
            else
            {
            }
            //ocode.Disabled = true;
        }