Esempio n. 1
0
 public static STD_ContactType GetSTD_ContactTypeByContactTypeID(int ContactTypeID)
 {
     STD_ContactType sTD_ContactType = new STD_ContactType();
     SqlSTD_ContactTypeProvider sqlSTD_ContactTypeProvider = new SqlSTD_ContactTypeProvider();
     sTD_ContactType = sqlSTD_ContactTypeProvider.GetSTD_ContactTypeByContactTypeID(ContactTypeID);
     return sTD_ContactType;
 }
Esempio n. 2
0
 public static DataSet GetDropDownListAllSTD_ContactType()
 {
     DataSet sTD_ContactTypes = new DataSet();
     SqlSTD_ContactTypeProvider sqlSTD_ContactTypeProvider = new SqlSTD_ContactTypeProvider();
     sTD_ContactTypes = sqlSTD_ContactTypeProvider.GetDropDownListAllSTD_ContactType();
     return sTD_ContactTypes;
 }
Esempio n. 3
0
 public static void LoadSTD_ContactTypePage(System.Web.UI.WebControls.GridView gv, System.Web.UI.WebControls.Repeater rptPager, int pageIndex, DropDownList ddlPageSize)
 {
     int recordCount=0;
     int PageSize =  int.Parse(ddlPageSize.SelectedValue);
     SqlSTD_ContactTypeProvider sqlSTD_ContactTypeProvider = new SqlSTD_ContactTypeProvider();
     DataSet ds =  sqlSTD_ContactTypeProvider.GetSTD_ContactTypePageWise(pageIndex, PageSize, out recordCount);
     gv.DataSource = ds;
     gv.DataBind();
      sTD_ContactTypesPaggination(rptPager,recordCount, pageIndex, PageSize);
 }
Esempio n. 4
0
 public static bool UpdateSTD_ContactType(STD_ContactType sTD_ContactType)
 {
     SqlSTD_ContactTypeProvider sqlSTD_ContactTypeProvider = new SqlSTD_ContactTypeProvider();
     return sqlSTD_ContactTypeProvider.UpdateSTD_ContactType(sTD_ContactType);
 }
Esempio n. 5
0
 public static int InsertSTD_ContactType(STD_ContactType sTD_ContactType)
 {
     SqlSTD_ContactTypeProvider sqlSTD_ContactTypeProvider = new SqlSTD_ContactTypeProvider();
     return sqlSTD_ContactTypeProvider.InsertSTD_ContactType(sTD_ContactType);
 }
Esempio n. 6
0
 public static bool DeleteSTD_ContactType(int sTD_ContactTypeID)
 {
     SqlSTD_ContactTypeProvider sqlSTD_ContactTypeProvider = new SqlSTD_ContactTypeProvider();
     return sqlSTD_ContactTypeProvider.DeleteSTD_ContactType(sTD_ContactTypeID);
 }