protected DataSet.DS baseGet()
        {
            DataSet.DS ds = new DataSet.DS();
            _base.SetConnection();
            _db = _base.GetDatabase();
            ds.Tables.Add(_listTable);
            ds.Load(_base.GetItem(), LoadOption.OverwriteChanges, _listTable);
            return ds;


        }
        public ActionResult SelectProduct(int? id)
        {
            
            if (Session[UIProductSearch.svSelectedProduct.ToString()] == null)
            {
                DataSet.DS _ds = new DataSet.DS();
                _ds.SelectedProduct.AddSelectedProductRow(  Convert.ToInt32( id ) );
                Session[UIProductSearch.svSelectedProduct.ToString()] = _ds;
            }
            else
            {
                DataSet.DS _ds = (DataSet.DS)Session[UIProductSearch.svSelectedProduct.ToString()];
                _ds.SelectedProduct.AddSelectedProductRow(Convert.ToInt32(id));
                Session[UIProductSearch.svSelectedProduct.ToString()] = _ds;
            }

            return Content("");
        }
示例#3
0
 protected void Activity(int activity_Type_ID, string text, int id)
 {
     BusinessLogic.Tracking.Activity obj = new BusinessLogic.Tracking.Activity();
     DataSet.DS ds = new DataSet.DS();
     int actvity_Sequence = Convert.ToInt32( Session["Activity_Sequence"] ) + 1;
     //ds.Activity.AddActivityRow( Convert.ToInt32( Session["Session_ID"] ),actvity_Sequence,activity_Type_ID,DateTime.Now,text,id);
       
     //obj.New(ds);
     Session["Activity_Sequence"] = actvity_Sequence;
 }