public static INV_Store GetSTD_CampusByCampusID(int CampusID) { INV_Store iNV_Store = new INV_Store(); SqlINV_StoreProvider sqlINV_StoreProvider = new SqlINV_StoreProvider(); iNV_Store = sqlINV_StoreProvider.GetINV_StoreByCampusID(CampusID); return iNV_Store; }
public static INV_Store GetINV_StoreByStoreID(int StoreID) { INV_Store iNV_Store = new INV_Store(); SqlINV_StoreProvider sqlINV_StoreProvider = new SqlINV_StoreProvider(); iNV_Store = sqlINV_StoreProvider.GetINV_StoreByStoreID(StoreID); return iNV_Store; }
protected void btnUpdate_Click(object sender, EventArgs e) { try { INV_Store iNV_Store = new INV_Store (); iNV_Store.StoreID= int.Parse(Request.QueryString["ID"].ToString()); iNV_Store.StoreName= txtStoreName.Text; iNV_Store.CampusID= int.Parse(ddlCampusID.SelectedValue); iNV_Store.Description= txtDescription.Text; iNV_Store.AddedBy= Profile.card_id; iNV_Store.AddedDate= DateTime.Now; iNV_Store.UpdatedBy= Profile.card_id; iNV_Store.UpdatedDate= DateTime.Now; bool resutl =INV_StoreManager.UpdateINV_Store(iNV_Store); }catch(Exception ex){}Response.Redirect("AdminDisplayINV_Store.aspx"); }
protected void btnAdd_Click(object sender, EventArgs e) { try { INV_Store iNV_Store = new INV_Store (); // iNV_Store.StoreID= int.Parse(ddlStoreID.SelectedValue); iNV_Store.StoreName= txtStoreName.Text; iNV_Store.CampusID= int.Parse(ddlCampusID.SelectedValue); iNV_Store.Description= txtDescription.Text; iNV_Store.AddedBy= Profile.card_id; iNV_Store.AddedDate= DateTime.Now; iNV_Store.UpdatedBy= Profile.card_id; iNV_Store.UpdatedDate= DateTime.Now; int resutl =INV_StoreManager.InsertINV_Store(iNV_Store); }catch(Exception ex){}Response.Redirect("AdminDisplayINV_Store.aspx"); }
public static int InsertINV_Store(INV_Store iNV_Store) { SqlINV_StoreProvider sqlINV_StoreProvider = new SqlINV_StoreProvider(); return sqlINV_StoreProvider.InsertINV_Store(iNV_Store); }
public static bool UpdateINV_Store(INV_Store iNV_Store) { SqlINV_StoreProvider sqlINV_StoreProvider = new SqlINV_StoreProvider(); return sqlINV_StoreProvider.UpdateINV_Store(iNV_Store); }
private void showINV_StoreData() { INV_Store iNV_Store = new INV_Store (); iNV_Store = INV_StoreManager.GetINV_StoreByStoreID(Int32.Parse(Request.QueryString["ID"])); txtStoreName.Text =iNV_Store.StoreName.ToString(); ddlCampusID.SelectedValue =iNV_Store.CampusID.ToString(); txtDescription.Text =iNV_Store.Description.ToString(); string txtUpdatedBy_Text =iNV_Store.UpdatedBy.ToString(); string txtUpdatedDate_Text =iNV_Store.UpdatedDate.ToString(); }