Ejemplo n.º 1
0
        public StoreGrade GetStoreFlourStock2(IEnumerable <Models.StoreGradeSize> list)
        {
            var storeGrade = new StoreGrade()
            {
                StoreSizeGrades = list,
            };


            return(storeGrade);
        }
Ejemplo n.º 2
0
        public StoreGrade GetStoreBuveraStockForView(IEnumerable <Models.StoreBuveraGradeSize> list)
        {
            var storeGrade = new StoreGrade()
            {
                StoreBuveraSizeGrades = list,
            };


            return(storeGrade);
        }
Ejemplo n.º 3
0
    private void DefaultData()
    {
        DataSet dsStat = dal.FactoryDAL(PageHelper.ConnectionStrings, "FW_USER_SP", new List <IFields>()
        {
            dal.CreateIFields()
            .Append("Option", "GetStat")
        }).GetList();

        StoreStat.DataSource = dsStat;
        StoreStat.DataBind();

        DataSet dsGrade = dal.FactoryDAL(PageHelper.ConnectionStrings, "FW_USER_SP", new List <IFields>()
        {
            dal.CreateIFields()
            .Append("Option", "GetGrade")
        }).GetList();

        StoreGrade.DataSource = dsGrade;
        StoreGrade.DataBind();

        DataSet dsDept = dal.FactoryDAL(PageHelper.ConnectionStrings, "FW_USER_SP", new List <IFields>()
        {
            dal.CreateIFields()
            .Append("Option", "GetDept")
        }).GetList();

        StoreDept.DataSource = dsDept;
        StoreDept.DataBind();

        DataSet dsGroup = dal.FactoryDAL(PageHelper.ConnectionStrings, "FW_USER_SP", new List <IFields>()
        {
            dal.CreateIFields()
            .Append("Option", "GetGroup")
        }).GetList();

        StoreSys.DataSource = dsGroup;
        StoreSys.DataBind();

        cmbUserStat.SelectedItem.Value  = "CON/HKG";
        cmbSys.SelectedItem.Value       = "G09";
        cmbUserGrade.SelectedItem.Value = "User";
        cmbUserDept.SelectedItem.Value  = "OP";
    }