Exemplo 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;
 }
Exemplo 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;
 }
Exemplo 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);
 }
Exemplo 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);
 }
Exemplo 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);
 }
Exemplo 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);
 }