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 Runtype()
{
//
// TODO: Add constructor logic here
//
}
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 Runtype()
{
//
// TODO: Add constructor logic here
//
}
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