Пример #1
0
 public DataSet DALNSSLongcodeReport(LongCodeBLL obj)
 {
     using (SqlConnection con = new SqlConnection(ConfigurationManager.AppSettings["ConnectionString"]))
     {
         try
         {
             ds = SqlHelper.ExecuteDataset(con, CommandType.StoredProcedure, "NSSPuneLongCodeReport");
         }
         catch (SqlException ex)
         {
             throw ex;
         }
         finally
         {
             con.Close();
         }
     }
     return(ds);
 }
Пример #2
0
 public DataSet DALSMSReportByMobile(LongCodeBLL obj)
 {
     using (SqlConnection con = new SqlConnection(ConfigurationManager.AppSettings["ConnectionString"]))
     {
         try
         {
             string sql = "select sendSMSstatus.ID,SendFrom,SendTo,sentMessage,sendDateTime,ProjectName,smslength from sendSMSstatus inner join sendercode on sendSMSstatus.sendercode =sendercode.id WHERE SendTo='" + obj.Mobileno + "' and Convert(Date,sendDateTime,103) BETWEEN '" + obj.Frmdate + "' AND  '" + obj.Todate + "' order by ID desc";
             ds = cc.ExecuteDataset(sql);
         }
         catch (SqlException ex)
         {
             throw ex;
         }
         finally
         {
             con.Close();
         }
     }
     return(ds);
 }
Пример #3
0
 public DataSet DALSMSCode(LongCodeBLL obj)
 {
     using (SqlConnection con = new SqlConnection(ConfigurationManager.AppSettings["ConnectionString"]))
     {
         try
         {
             // ds = SqlHelper.ExecuteDataset(con, CommandType.StoredProcedure, "SendSMSReport");
             string sql = "select * from sendercode";
             ds = cc.ExecuteDataset(sql);
         }
         catch (SqlException ex)
         {
             throw ex;
         }
         finally
         {
             con.Close();
         }
     }
     return(ds);
 }
Пример #4
0
    public string DALgetsmsbyidCount(LongCodeBLL obj)
    {
        string count;

        using (SqlConnection con = new SqlConnection(ConfigurationManager.AppSettings["ConnectionString"]))
        {
            try
            {
                //string sql = "select top(500)sendSMSstatus.ID,SendFrom,SendTo,sentMessage,sendDateTime,ProjectName,smslength from sendSMSstatus inner join sendercode on sendSMSstatus.sendercode =sendercode.id where sendercode='"+obj.Sendercode+"' order by sendSMSstatus.ID desc ";
                string sql = "select Count(*) from sendSMSstatus WHERE Convert(Date,sendDateTime,103) BETWEEN '" + obj.Frmdate + "' AND  '" + obj.Todate + "' and sendercode='" + obj.Sendercode + "'";

                count = cc.ExecuteScalar(sql);
            }
            catch (SqlException ex)
            {
                throw ex;
            }
            finally
            {
                con.Close();
            }
        }
        return(count);
    }
Пример #5
0
    public DataSet BLLSMSReportByMobile(LongCodeBLL obj)
    {
        DataSet dt = objdalLongcode.DALSMSReportByMobile(obj);

        return(dt);
    }
Пример #6
0
    public DataSet BLLDARLongCodeReport(LongCodeBLL obj)
    {
        DataSet dt = objdalLongcode.DALDARLongcodeReport(obj);

        return(dt);
    }
Пример #7
0
    public DataSet BLLNSSLongCodeReportAll(LongCodeBLL obj)
    {
        DataSet dt = objdalLongcode.DALNSSLongCodeReportAll(obj);

        return(dt);
    }
Пример #8
0
    public DataSet BLLgetlongcoderecord(LongCodeBLL obj)
    {
        DataSet ds = objdalLongcode.DALgetlongcoderecord(obj);

        return(ds);
    }
Пример #9
0
    public string BLLgetsmsbyidcount(LongCodeBLL obj)
    {
        string count = objdalLongcode.DALgetsmsbyidCount(obj);

        return(count);
    }
Пример #10
0
    public DataSet BLLgetsmsbyid(LongCodeBLL obj)
    {
        DataSet dt = objdalLongcode.DALgetsmsbyid(obj);

        return(dt);
    }
Пример #11
0
    public DataSet BLLSMSCode(LongCodeBLL obj)
    {
        DataSet dt = objdalLongcode.DALSMSCode(obj);

        return(dt);
    }
Пример #12
0
    public string BLLSMSReportcount(LongCodeBLL obj)
    {
        string count = objdalLongcode.DALSMSReportCount(obj);

        return(count);
    }