using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
/// <summary>
/// Summary description for Runtype
/// </summary>
public class Runtype
{
SPMS serv1 = new SPMS();
public DataTable dtrip = new DataTable();
public DataTable regtable = new DataTable();
public Runtype()
{
//
// TODO: Add constructor logic here
//
}
//Regtable fdhhfhfddfhhfdhfhfhfd
public void intiregtable()
{
try
{
{
regtable.Columns.Add("name");
regtable.Columns.Add("loginid");
regtable.Columns.Add("Emailid");
regtable.Columns.Add("phoneno");
regtable.Columns.Add("services");
regtable.Columns.Add("photo");
regtable.Columns.Add("dob");
}
regtable.Rows.Add(regtable.NewRow());
}
catch (Exception ex)
{
}
}
public long SaveimageRecord(DataSet ds1,byte[] t)
{
long Recid = 0;
try
{
Recid = serv1.AddNewRegRecords(ds1, t);
}
catch (Exception ex)
{
}
return Recid;
}
public void intitable()
{
try
{
{
dtrip.Columns.Add("Title");
dtrip.Columns.Add("Firstname");
dtrip.Columns.Add("Middlename");
}
dtrip.Rows.Add(dtrip.NewRow());
}
catch (Exception ex)
{
}
}
public long SaveRecords(DataSet ds1)
{
long Recid=0;
try
{
Recid = serv1.AddNewRecords(ds1);
}
catch (Exception ex)
{
}
return Recid ;
}
public long UpdateRecords(DataSet ds1,int j)
{
long Recid = 0;
try
{
Recid = serv1.UpdateRecords(ds1 ,j);
}
catch (Exception ex)
{
}
return Recid;
}
public long DeleteRecords( int j)
{
long Recid = 0;
try
{
Recid = serv1.DeletetripRecord(j);
}
catch (Exception ex)
{
}
return Recid;
}
public DataSet GetData()
{
DataSet Ds1 = new DataSet();
try
{
Ds1 = serv1.GetRecordTripDetail();
}
catch (Exception ex)
{
}
return Ds1;
}
public DataSet GetCountryName()
{
DataSet Ds1 = new DataSet();
try
{
Ds1 = serv1.GetContryMaster();
}
catch (Exception ex)
{
}
return Ds1;
}
public DataSet GetDataByRecid(int ictr)
{
DataSet Ds1 = new DataSet();
try
{
Ds1 = serv1.GetDatabyRecid( ictr);
}
catch (Exception ex)
{
}
return Ds1;
}
public DataSet GetStateName(int ictr)
{
DataSet Ds1 = new DataSet();
try
{
Ds1 = serv1.GetStateName(ictr);
}
catch (Exception ex)
{
}
return Ds1;
}
}
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
/// <summary>
/// Summary description for Runtype
/// </summary>
public class Runtype
{
SPMS serv1 = new SPMS();
public DataTable dtrip = new DataTable();
public DataTable regtable = new DataTable();
public Runtype()
{
//
// TODO: Add constructor logic here
//
}
//Regtable fdhhfhfddfhhfdhfhfhfd
public void intiregtable()
{
try
{
{
regtable.Columns.Add("name");
regtable.Columns.Add("loginid");
regtable.Columns.Add("Emailid");
regtable.Columns.Add("phoneno");
regtable.Columns.Add("services");
regtable.Columns.Add("photo");
regtable.Columns.Add("dob");
}
regtable.Rows.Add(regtable.NewRow());
}
catch (Exception ex)
{
}
}
public long SaveimageRecord(DataSet ds1,byte[] t)
{
long Recid = 0;
try
{
Recid = serv1.AddNewRegRecords(ds1, t);
}
catch (Exception ex)
{
}
return Recid;
}
public void intitable()
{
try
{
{
dtrip.Columns.Add("Title");
dtrip.Columns.Add("Firstname");
dtrip.Columns.Add("Middlename");
}
dtrip.Rows.Add(dtrip.NewRow());
}
catch (Exception ex)
{
}
}
public long SaveRecords(DataSet ds1)
{
long Recid=0;
try
{
Recid = serv1.AddNewRecords(ds1);
}
catch (Exception ex)
{
}
return Recid ;
}
public long UpdateRecords(DataSet ds1,int j)
{
long Recid = 0;
try
{
Recid = serv1.UpdateRecords(ds1 ,j);
}
catch (Exception ex)
{
}
return Recid;
}
public long DeleteRecords( int j)
{
long Recid = 0;
try
{
Recid = serv1.DeletetripRecord(j);
}
catch (Exception ex)
{
}
return Recid;
}
public DataSet GetData()
{
DataSet Ds1 = new DataSet();
try
{
Ds1 = serv1.GetRecordTripDetail();
}
catch (Exception ex)
{
}
return Ds1;
}
public DataSet GetCountryName()
{
DataSet Ds1 = new DataSet();
try
{
Ds1 = serv1.GetContryMaster();
}
catch (Exception ex)
{
}
return Ds1;
}
public DataSet GetDataByRecid(int ictr)
{
DataSet Ds1 = new DataSet();
try
{
Ds1 = serv1.GetDatabyRecid( ictr);
}
catch (Exception ex)
{
}
return Ds1;
}
public DataSet GetStateName(int ictr)
{
DataSet Ds1 = new DataSet();
try
{
Ds1 = serv1.GetStateName(ictr);
}
catch (Exception ex)
{
}
return Ds1;
}
}
No comments:
Post a Comment