protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                txtTo.Text = DateTime.Now.ToString("yyyy-MM-dd");
                Dal.BaseInfo.TB_HouseInfoService   houseSer  = new VAN_OA.Dal.BaseInfo.TB_HouseInfoService();
                List <Model.BaseInfo.TB_HouseInfo> houseList = houseSer.GetListArray("");
                ddlHouse.DataSource = houseList;
                ddlHouse.DataBind();
                ddlHouse.DataTextField  = "houseName";
                ddlHouse.DataValueField = "id";

                //主单
                List <Pro_JSXDetailInfo> pOOrderList = new List <Pro_JSXDetailInfo>();
                this.gvMain.DataSource = pOOrderList;
                this.gvMain.DataBind();
                if (Request["goodNo"] != null)
                {
                    //txtFrom.Text = (DateTime.Now.Year - 1) + "-1-1";
                    txtTo.Text             = DateTime.Now.ToString("yyyy-MM-dd");
                    txtGoodNo.Text         = Request["goodNo"];
                    ddlHouse.SelectedIndex = 0;
                    Show();
                }
            }
        }
Example #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Session["DioSellWFHouseGoods"] = new List <Sell_OrderOutHouses>();
                TB_GoodsSmTypeService goodsSmTypeSer  = new TB_GoodsSmTypeService();
                List <TB_GoodsSmType> goodsSmTypeList = goodsSmTypeSer.GetListArray("");
                goodsSmTypeList.Insert(0, new TB_GoodsSmType());
                ddlGoodSmType.DataSource = goodsSmTypeList;
                ddlGoodSmType.DataBind();
                ddlGoodSmType.DataTextField  = "GoodTypeSmName";
                ddlGoodSmType.DataValueField = "GoodTypeSmName";

                TB_GoodsTypeService typeSer = new TB_GoodsTypeService();
                List <TB_GoodsType> allType = typeSer.GetListArray("");
                allType.Insert(0, new TB_GoodsType());
                ddlGoodType.DataSource = allType;
                ddlGoodType.DataBind();
                ddlGoodType.DataTextField  = "GoodTypeName";
                ddlGoodType.DataValueField = "GoodTypeName";


                Dal.BaseInfo.TB_HouseInfoService   houseSer  = new VAN_OA.Dal.BaseInfo.TB_HouseInfoService();
                List <Model.BaseInfo.TB_HouseInfo> houseList = houseSer.GetListArray("");
                houseList.Add(new TB_HouseInfo());
                ddlHouse.DataSource = houseList;
                ddlHouse.DataBind();
                ddlHouse.DataTextField  = "houseName";
                ddlHouse.DataValueField = "id";



                List <TB_HouseGoods> allGoods = new List <TB_HouseGoods>();
                gvList.DataSource = allGoods;
                gvList.DataBind();
            }
        }
Example #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                TB_ModelService modelService = new TB_ModelService();
                var             _modelList   = modelService.GetListArray("");
                _modelList.Insert(0, new TB_Model {
                    Id = -1, ModelName = "全部"
                });
                ddlModel.DataSource = _modelList;
                ddlModel.DataBind();
                ddlModel.DataTextField  = "ModelName";
                ddlModel.DataValueField = "ModelName";

                //加载基本信息
                ddlNumber.Items.Add(new ListItem {
                    Text = "全部", Value = ""
                });
                ddlRow.Items.Add(new ListItem {
                    Text = "全部", Value = ""
                });
                ddlCol.Items.Add(new ListItem {
                    Text = "全部", Value = ""
                });
                //货架号:1.全部  缺省 2….51 1,..50
                for (int i = 1; i < 51; i++)
                {
                    ddlNumber.Items.Add(new ListItem {
                        Text = i.ToString(), Value = i.ToString()
                    });
                    //层数:1.全部  缺省 2….21 1,2,3…20
                    //部位:1.全部  缺省 2….21 1,2,3…20
                    if (i <= 21)
                    {
                        ddlRow.Items.Add(new ListItem {
                            Text = i.ToString(), Value = i.ToString()
                        });
                        ddlCol.Items.Add(new ListItem {
                            Text = i.ToString(), Value = i.ToString()
                        });
                    }
                }

                TB_CompanyService comSer = new TB_CompanyService();
                var comList = comSer.GetListArray("");
                foreach (var m in comList)
                {
                    m.ComSimpName += "," + m.Id + "," + m.ComCode;
                }
                comList.Insert(0, new VAN_OA.Model.BaseInfo.TB_Company()
                {
                    ComSimpName = "-1", ComName = "全部"
                });
                ddlCompany.DataSource = comList;
                ddlCompany.DataBind();

                Dal.BaseInfo.TB_HouseInfoService   houseSer  = new VAN_OA.Dal.BaseInfo.TB_HouseInfoService();
                List <Model.BaseInfo.TB_HouseInfo> houseList = houseSer.GetListArray("");
                houseList.Insert(0, new VAN_OA.Model.BaseInfo.TB_HouseInfo());
                ddlHouse.DataSource = houseList;
                ddlHouse.DataBind();
                ddlHouse.DataTextField  = "houseName";
                ddlHouse.DataValueField = "id";

                //主单
                List <CAI_OrderInHouse> pOOrderList = new List <CAI_OrderInHouse>();
                this.gvMain.DataSource = pOOrderList;
                this.gvMain.DataBind();

                //子单
                List <CAI_OrderInHouses> orders = new List <CAI_OrderInHouses>();
                gvList.DataSource = orders;
                gvList.DataBind();
                List <VAN_OA.Model.User>  user    = new List <VAN_OA.Model.User>();
                VAN_OA.Dal.SysUserService userSer = new VAN_OA.Dal.SysUserService();
                if (QuanXian_ShowAll(SysObj.CAI_OrderInHouseList) == false)
                {
                    ViewState["showAll"] = false;
                    var model = Session["userInfo"] as User;
                    user.Insert(0, model);
                }
                else
                {
                    user = userSer.getAllUserByPOList();
                    user.Insert(0, new VAN_OA.Model.User()
                    {
                        LoginName = "全部", Id = -1
                    });
                }
                ddlUser.DataSource = user;
                ddlUser.DataBind();
                ddlUser.DataTextField  = "LoginName";
                ddlUser.DataValueField = "Id";
            }
        }
Example #4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //加载基本信息
                ddlNumber.Items.Add(new ListItem {
                    Text = "全部", Value = ""
                });
                ddlRow.Items.Add(new ListItem {
                    Text = "全部", Value = ""
                });
                ddlCol.Items.Add(new ListItem {
                    Text = "全部", Value = ""
                });
                //货架号:1.全部  缺省 2….51 1,..50
                for (int i = 1; i < 51; i++)
                {
                    ddlNumber.Items.Add(new ListItem {
                        Text = i.ToString(), Value = i.ToString()
                    });
                    //层数:1.全部  缺省 2….21 1,2,3…20
                    //部位:1.全部  缺省 2….21 1,2,3…20
                    if (i <= 21)
                    {
                        ddlRow.Items.Add(new ListItem {
                            Text = i.ToString(), Value = i.ToString()
                        });
                        ddlCol.Items.Add(new ListItem {
                            Text = i.ToString(), Value = i.ToString()
                        });
                    }
                }

                TB_GoodsTypeService typeSer = new TB_GoodsTypeService();
                List <TB_GoodsType> allType = typeSer.GetListArray("");
                allType.Insert(0, new TB_GoodsType());
                ddlGoodType.DataSource = allType;
                ddlGoodType.DataBind();
                ddlGoodType.DataTextField  = "GoodTypeName";
                ddlGoodType.DataValueField = "GoodTypeName";


                TB_GoodsSmTypeService goodsSmTypeSer  = new TB_GoodsSmTypeService();
                List <TB_GoodsSmType> goodsSmTypeList = goodsSmTypeSer.GetListArrayToddl("");
                goodsSmTypeList.Insert(0, new TB_GoodsSmType());
                ddlGoodSmType.DataSource = goodsSmTypeList;
                ddlGoodSmType.DataBind();
                ddlGoodSmType.DataTextField  = "GoodTypeSmName";
                ddlGoodSmType.DataValueField = "GoodTypeSmName";


                Dal.BaseInfo.TB_HouseInfoService   houseSer  = new VAN_OA.Dal.BaseInfo.TB_HouseInfoService();
                List <Model.BaseInfo.TB_HouseInfo> houseList = houseSer.GetListArray("");
                houseList.Insert(0, new TB_HouseInfo());
                ddlHouse.DataSource = houseList;
                ddlHouse.DataBind();
                ddlHouse.DataTextField  = "houseName";
                ddlHouse.DataValueField = "id";



                List <TB_HouseGoods> allGoods = new List <TB_HouseGoods>();
                gvList.DataSource = allGoods;
                gvList.DataBind();
            }
        }