Exemplo n.º 1
0
        //public int Disscount
        //{
        //    get {
        //        if (rbWhithDiscount.Checked)
        //            return 1009;
        //        else
        //            return 0;
        //    }


        //}
        public bool checkAjance()
        {
            ClCar cl = new ClCar();

            cl.Pelak = CtlPelak.Text;
            DataSet ds = CarClass.GetList(cl);

            if (ds.Tables[0].Rows.Count > 0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemplo n.º 2
0
        public void BindGrid()
        {
            ClCar cl = new ClCar();

            cl.PersonID = PersonID;
            DataSet  ds = CarClass.GetList(cl);
            DataView dv = new DataView(ds.Tables[0]);

            if (ViewState["CarID"] == null)
            {
                ViewState["CarID"] = "CarID Desc";
            }
            dv.Sort = Securenamespace.SecureData.CheckSecurity(ViewState["CarID"].ToString()).ToString();
            GridView1.DataSource = dv;
            GridView1.DataBind();
        }
Exemplo n.º 3
0
        private int ChekPelak(string Pelak)
        {
            ClCar cl = new ClCar();

            cl.Pelak = Pelak;
            DataSet ds = CarClass.GetList(cl);

            if ((ds.Tables[0].Rows.Count) > 0)
            {
                return(Convert.ToInt32(ds.Tables[0].Rows[0]["CarID"].ToString()));
            }
            else
            {
                return(0);
            }
        }