コード例 #1
0
        public int InsertPurchaseDetails(string id, string packname, string packsize, string packdatefrom, string packdateto, string packtype, string packtotalcost)
        {
            PurchaseDAO dao    = new PurchaseDAO();
            int         result = dao.InsertPurchaseDetails(id, packname, packsize, packdatefrom, packdateto, packtype, packtotalcost);

            return(result);
        }
コード例 #2
0
        public PurchaseBO(IOptions <ApiRequestSettings> apiRequestSettings, IOptions <PurchaseSettings> purchaseSettings, IOptions <DatabaseSettings> databaseSettings, IRequest request) : base()
        {
            Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("en-US");

            this.apiRequestSettings = apiRequestSettings.Value;
            this.purchaseSettings   = purchaseSettings.Value;
            this.request            = request;
            this.purchaseDAO        = new PurchaseDAO(ConnectionFactory.GetDbConnectionDefault(databaseSettings.Value.connectionString));
        }
コード例 #3
0
 public PurchaseViewModel()
 {
     _purchaseDAO = new PurchaseDAO();
     _purchase    = new PurchaseModel();
     ClearView();
     UpdateList();
     if (Purchase.Id == 0)
     {
         Purchase.Active = true;
     }
 }
コード例 #4
0
        public List <Purchase> SelectByUsername(string username)
        {
            PurchaseDAO dao = new PurchaseDAO();

            return(dao.SelectByUsername(username));
        }