示例#1
0
 public DataSet dal_GLEntryDetail(bel_GLEntry obj_bel_GLEntry)
 {
     DataSet ds = new DataSet();
     try
     {
         SqlCommand sqlcmd = new SqlCommand("spu_GLEntrySearch");
         sqlcmd.CommandTimeout = 0;
         sqlcmd.CommandType = CommandType.StoredProcedure;
         sqlcmd.Parameters.Clear();
         sqlcmd.Parameters.AddWithValue("@GLEntryID", obj_bel_GLEntry._GLEntryID);
         sqlcmd.Parameters.AddWithValue("@GLEntry_DetailID", obj_bel_GLEntry._GLEntry_DetailID);
         sqlcmd.Parameters.AddWithValue("@BranchID", Convert.ToInt32(HttpContext.Current.Session["BranchID"]));
         sqlcmd.Parameters.AddWithValue("@ProductID", obj_bel_GLEntry._ProductID);
         sqlcmd.Parameters.AddWithValue("@ProductCode", obj_bel_GLEntry._ProductCode);
         sqlcmd.Parameters.AddWithValue("@JOBID", obj_bel_GLEntry._JOBID);
         sqlcmd.Parameters.AddWithValue("@ScreenName", obj_bel_GLEntry._ScreenName);
         sqlcmd.Parameters.AddWithValue("@CompanyID", Convert.ToInt32(HttpContext.Current.Session["CompanyID"]));
         sqlcmd.Parameters.AddWithValue("@iMode", obj_bel_GLEntry._iMode);
         sqlcmd.Parameters.AddWithValue("@PartyID", obj_bel_GLEntry._PartyID);
         sqlcmd.Parameters.AddWithValue("@Period", obj_bel_GLEntry._BillFromDate);
         ds = DataFunctions.GetDataSet(sqlcmd);
     }
     catch (Exception ex)
     {
     }
     return ds;
 }
示例#2
0
 public DataSet dal_AutoGen(bel_GLEntry obj_bel_GLEntry)
 {
     DataSet ds = new DataSet();
     try
     {
         SqlCommand sqlcmd = new SqlCommand("spu_AutoGenTransaction");
         sqlcmd.CommandTimeout = 0;
         sqlcmd.CommandType = CommandType.StoredProcedure;
         sqlcmd.Parameters.Clear();
         sqlcmd.Parameters.AddWithValue("@ScreenName", obj_bel_GLEntry._ScreenName);
         sqlcmd.Parameters.AddWithValue("@CompanyID", Convert.ToInt32(HttpContext.Current.Session["CompanyID"]));
         sqlcmd.Parameters.AddWithValue("@FromDate", obj_bel_GLEntry._BillFromDate);
         sqlcmd.Parameters.AddWithValue("@ToDate", obj_bel_GLEntry._BillToDate);
         sqlcmd.Parameters.AddWithValue("@Year", Convert.ToInt32(HttpContext.Current.Session["FinancialYear"]));
         ds = DataFunctions.GetDataSet(sqlcmd);
     }
     catch (Exception ex)
     {
     }
     return ds;
 }