Exemplo n.º 1
0
        //public int Haghighiid { get; set; }
        public void BindDD()
        {
            string hh = Personelid.ToString();

            //DDStreetTypeid.DataSource = TaxiDAL.CatalogClass.GetListTypeID("12");
            //DDStreetTypeid.DataTextField = "CatalogName";
            //DDStreetTypeid.DataValueField = "CatalogValue";
            //DDStreetTypeid.DataBind();

            //DDTreeTypeId.DataSource = TaxiDAL.CatalogClass.GetListTypeID("16");
            //DDTreeTypeId.DataTextField = "CatalogName";
            //DDTreeTypeId.DataValueField = "CatalogValue";
            //DDTreeTypeId.DataBind();

            DDMantagheId.DataSource     = TaxiDAL.CatalogClass.GetListTypeID("2");
            DDMantagheId.DataTextField  = "CatalogName";
            DDMantagheId.DataValueField = "CatalogValue";
            DDMantagheId.DataBind();
            //     BindPeyman();
            //BindGrid();


            DDPeymanid.DataSource     = PeymanClass.GetList2(null, null, null);
            DDPeymanid.DataTextField  = "PeymanName";
            DDPeymanid.DataValueField = "PeymanID";
            DDPeymanid.DataBind();

            DDLicesnceTypeid.DataSource     = LicensingTreeClass.GetList(null, null, null, null, null, null, null, null);
            DDLicesnceTypeid.DataTextField  = "Title";
            DDLicesnceTypeid.DataValueField = "Mojavezid";
            DDLicesnceTypeid.DataBind();
        }
Exemplo n.º 2
0
        public void BindGrid()
        {
            DataSet ds = LicensingTreeClass.GetList(null, Haghighiid.ToString(), Personelid.ToString(), null, null, null, null, null);

            //DataView dv = new DataView(ds.Tables[0]);
            //if (Securenamespace.SecureData.CheckSecurity(ViewState["LicensingTree"].ToString()) == null)
            //{
            //    ViewState["LicensingTree"] = "Mojavezid Desc";
            //}
            //dv.Sort = Securenamespace.SecureData.CheckSecurity(ViewState["LicensingTree"].ToString()).ToString();
            if (ds != null)
            {
                GridView1.DataSource = ds.Tables[0];
                GridView1.DataBind();
            }
        }