Ejemplo n.º 1
0
        private void WareHousePopUpForm_Load(object sender, EventArgs e)
        {
            ReleaseService releaseService = new ReleaseService();
            StorageService storageService = new StorageService();

            txtOrderID.Text  = order_no.ToString();
            txtquantity.Text = product_quantity.ToString();
            cboProduct.ComboBinding(releaseService.SelectProduct(), "Product_ID", "Product_Name");
            cboProduct.SelectedValue = product_id;

            cboStorage.ComboBinding(storageService.GetStorage(), "Storage_Id", "Storage_Name");
        }
Ejemplo n.º 2
0
        private void InOutListForm_Load(object sender, EventArgs e)
        {
            dgv.ColumnHeadersDefaultCellStyle.ForeColor = Color.LightBlue;
            dgv.ColumnHeadersHeight = 30;

            dgv.AddNewColumns("입출고", "gubun", 70, true, true, false, DataGridViewContentAlignment.MiddleLeft);
            dgv.AddNewColumns("번호", "release_no", 60, true, true, false, DataGridViewContentAlignment.MiddleRight);
            dgv.AddNewColumns("창고ID", "storage_id", 100, false, true, false, DataGridViewContentAlignment.MiddleLeft);
            dgv.AddNewColumns("창고", "storage_name", 100, true, true, false, DataGridViewContentAlignment.MiddleLeft);
            dgv.AddNewColumns("품목", "product_id", 100, false, true, false, DataGridViewContentAlignment.MiddleLeft);
            dgv.AddNewColumns("품목유형", "product_type", 100, true, true, false, DataGridViewContentAlignment.MiddleLeft);
            dgv.AddNewColumns("품명", "product_name", 150, true, true, false, DataGridViewContentAlignment.MiddleLeft);
            dgv.AddNewColumns("수량", "release_quantity", 80, true, true, false, DataGridViewContentAlignment.MiddleRight);
            dgv.AddNewColumns("입출고일", "release_date", 120, true, true, false, DataGridViewContentAlignment.MiddleLeft);

            ReleaseService releaseService = new ReleaseService();

            cboProduct.ComboBinding(releaseService.SelectProduct(), "Product_ID", "Product_Name", "전체");

            cboGubun.SelectedIndex = 0;

            Search(null, null);
        }