示例#1
0
 public frmSize()
 {
     sizeBLL    = new SizeBLL(dbHelper);
     productBLL = new ProductBLL(dbHelper);
     InitializeComponent();
     dataGridView1.CellContentClick += dataGridView1_CellContentClick;
 }
示例#2
0
 public frmProduct()
 {
     productBLL            = new ProductBLL(dbHelper);
     sizeBLL               = new SizeBLL(dbHelper);
     productSubCategoryBLL = new ProductSubCategoryBLL(dbHelper);
     productCategoryBLL    = new ProductCategoryBLL(dbHelper);
     InitializeComponent();
     dataGridView1.CellContentClick += dataGridView1_CellContentClick;
     FillGrid();
     FillCombo();
 }
示例#3
0
        public HttpResponseMessage Post(HUTModels.Size model)
        {
            SizeBLL bll = new SizeBLL();

            if (bll.Insert(model))
            {
                return(new HttpResponseMessage(HttpStatusCode.OK));
            }
            else
            {
                return(new HttpResponseMessage(HttpStatusCode.InternalServerError));
            }
        }
示例#4
0
        public IHttpActionResult GetByDateRange(int personId, DateTime startDate, DateTime endDate)
        {
            SizeBLL bll   = new SizeBLL();
            var     sizes = bll.GetByDateRange(personId, startDate, endDate);

            if (sizes == null)
            {
                return(Content(HttpStatusCode.NotFound, "Sizes do not exist."));
            }
            else
            {
                return(Ok(sizes));
            }
        }