Beispiel #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();
        }
Beispiel #2
0
        protected void BtnSerach_Click1(object sender, EventArgs e)
        {
            DataSet  ds      = LicensingTreeClass.GetList(null, null, null, null, null, null, null, null);
            DataView dv      = new DataView(ds.Tables[0]);
            String   StrSort = Securenamespace.SecureData.CheckSecurity(ViewState["LicensingTree"].ToString());

            if (StrSort != null)
            {
                dv.Sort = StrSort;
            }
            GridView1.DataSource = dv;
            GridView1.DataBind();
        }
Beispiel #3
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();
            }
        }
Beispiel #4
0
        public void UpItem(object sender, EventArgs e)
        {
            String Mojavezid = ((HtmlAnchor)sender).HRef.ToString();

            DataSet ds = LicensingTreeClass.GetList(Mojavezid, null, null, null, null, null, null, null);
            DataRow dr = ds.Tables[0].Rows[0];

            TXTMojavezid.Text              = Mojavezid;
            TXTTitle.Text                  = dr["Title"].ToString();
            TXTDesc.Text                   = dr["Desc"].ToString();
            TXTMojavezDate.Text            = dr["date1"].ToString();
            DDMantagheId.SelectedValue     = dr["MantagheId"].ToString();
            DDLicesnceTypeid.SelectedValue = dr["LicesnceTypeid"].ToString();

            EmptyLight();
            LightBox.Value    = "1";
            BtnInsert.Visible = false;
            BtnSerach.Visible = false;
            BtnUpdate.Visible = true;
        }