示例#1
0
 public DataTable CounterSearch(counter_Prop counterprop)
 {
     try
     {
         return(SqlHelper.ExecuteDataset(com.con, "usp_Counter_Search", new object[] { counterprop.CounterName }).Tables[0]);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
示例#2
0
 public string CounterUpdate(counter_Prop counterprop)
 {
     try
     {
         return(SqlHelper.ExecuteNonQuery(com.con, "usp_Counter_UPDATE", new object[] { counterprop.Counterid, counterprop.CounterName, counterprop.Address, counterprop.ContactPerson, counterprop.ContactNo }).ToString());
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
示例#3
0
 public string CounterInsert(counter_Prop counterprop)
 {
     try
     {
         return(SqlHelper.ExecuteDataset(com.con, "usp_Counter_INSERT", new object[] { counterprop.CounterName, counterprop.Address, counterprop.ContactPerson, counterprop.ContactNo }).Tables[0].Rows[0][0].ToString());
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
示例#4
0
 public DataTable fillUser(counter_Prop counterprop)
 {
     try
     {
         return(SqlHelper.ExecuteDataset(com.con, "usp_User_Select", new object[] { counterprop.Counterid }).Tables[0]);
     }
     catch (Exception e)
     {
         throw e;
     }
 }
示例#5
0
        public DataTable CounterSelect(counter_Prop counterprop)
        {
            try
            {
                return(SqlHelper.ExecuteDataset(com.con, "usp_Counter_select", new object[] { counterprop.Counterid }).Tables[0]);
            }

            catch (Exception Ex)
            {
                throw Ex;
            }
        }
示例#6
0
        public string CounterDelete(counter_Prop counterprop)
        {
            try
            {
                return(SqlHelper.ExecuteNonQuery(com.con, "usp_Counter_DELETE", new object[] { counterprop.Counterid }).ToString());
            }

            catch (Exception Ex)
            {
                throw Ex;
            }
        }
示例#7
0
 public DataTable fillUser(counter_Prop counterProp)
 {
     try
     {
         reportdal = new report_dal();
         DataTable dt = reportdal.fillUser(counterProp);
         return(dt);
     }
     catch (Exception e)
     {
         ErrMessage = e.Message;
         return(null);
     }
 }
示例#8
0
 public string CounterDelete(counter_Prop counterprop)
 {
     try
     {
         counterdal = new counter_dal();
         string strmsg = counterdal.CounterDelete(counterprop);
         return(strmsg);
     }
     catch (Exception e)
     {
         ErrMessage = e.Message;
         return("");
     }
 }
示例#9
0
 public DataTable CounterSearch(counter_Prop counterprop)
 {
     try
     {
         counterdal = new counter_dal();
         DataTable dt = counterdal.CounterSearch(counterprop);
         return(dt);
     }
     catch (Exception e)
     {
         ErrMessage = e.Message;
         return(null);
     }
 }