private void btnConfirm_Click(object sender, EventArgs e)
        {
            if (XtraMessageBox.Show("Are you sure you want to comfirm the Beginning Balance, once confirm you cannot undo", "Are you sure...", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes)
            {
                if (lkWarehouse.EditValue != null && lkAccount.EditValue != null)
                {
                    int StoreID     = Convert.ToInt32(lkAccount.EditValue);
                    int WarehouseID = Convert.ToInt32(lkWarehouse.EditValue);


                    BLL.Receipt.Confirm(StoreID, WarehouseID);

                    XtraMessageBox.Show("Quantity has been successfully confirmed, Please Print the additional Inventory Count", "Success...", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    HCMIS.Desktop.Reports.InventoryCountSheet xreport = new HCMIS.Desktop.Reports.InventoryCountSheet(CurrentContext.LoggedInUserName);
                    xreport.DataSource = BLL.Receipt.GetInventoryCountbyAccountandWarehouse(Convert.ToInt32(lkAccount.EditValue), Convert.ToInt32(lkWarehouse.EditValue), Convert.ToInt32(lkCategories.EditValue), ReceiptConfirmationStatus.Constants.RECEIVE_ENTERED);
                    DateTimePickerEx dtDate = new DateTimePickerEx();
                    dtDate.Value      = DateTimeHelper.ServerDateTime;
                    xreport.Date.Text = dtDate.Text;
                    xreport.ShowPreview();
                }
                else
                {
                    XtraMessageBox.Show("Select Activity and Warehouse first", "Warning...", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                }
            }
        }
        private void btnConfirm_Click(object sender, EventArgs e)
        {
            if(XtraMessageBox.Show("Are you sure you want to comfirm the Beginning Balance, once confirm you cannot undo", "Are you sure...", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes)
            {
            if (lkWarehouse.EditValue != null && lkAccount.EditValue != null)
                {
                    int StoreID = Convert.ToInt32(lkAccount.EditValue);
                    int WarehouseID = Convert.ToInt32(lkWarehouse.EditValue);

                    BLL.Receipt.Confirm(StoreID, WarehouseID);

                    XtraMessageBox.Show("Quantity has been successfully confirmed, Please Print the additional Inventory Count", "Success...", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    HCMIS.Desktop.Reports.InventoryCountSheet xreport = new HCMIS.Desktop.Reports.InventoryCountSheet(CurrentContext.LoggedInUserName);
                    xreport.DataSource = BLL.Receipt.GetInventoryCountbyAccountandWarehouse(Convert.ToInt32(lkAccount.EditValue), Convert.ToInt32(lkWarehouse.EditValue), Convert.ToInt32(lkCategories.EditValue), ReceiptConfirmationStatus.Constants.RECEIVE_ENTERED);
                    DateTimePickerEx dtDate = new DateTimePickerEx();
                    dtDate.Value = DateTimeHelper.ServerDateTime;
                    xreport.Date.Text = dtDate.Text;
                    xreport.ShowPreview();
                }
                else
                {
                    XtraMessageBox.Show("Select Activity and Warehouse first", "Warning...", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                }

            }
        }
        private void simpleButton1_Click(object sender, EventArgs e)
        {
            HCMIS.Desktop.Reports.InventoryCountSheet xreport = new HCMIS.Desktop.Reports.InventoryCountSheet(CurrentContext.LoggedInUserName);
            xreport.DataSource = BLL.Receipt.GetInventoryCountbyAccountandPhysicalStore(Convert.ToInt32(lkAccount.EditValue), Convert.ToInt32(lkWarehouse.EditValue), Convert.ToInt32(lkCategories.EditValue));
            DateTimePickerEx dtDate = new DateTimePickerEx();

            dtDate.Value      = DateTimeHelper.ServerDateTime;
            xreport.Date.Text = dtDate.Text;
            xreport.ShowPreview();
        }
 private void simpleButton1_Click(object sender, EventArgs e)
 {
     HCMIS.Desktop.Reports.InventoryCountSheet xreport = new HCMIS.Desktop.Reports.InventoryCountSheet(CurrentContext.LoggedInUserName);
     xreport.DataSource = BLL.Receipt.GetInventoryCountbyAccountandPhysicalStore(Convert.ToInt32(lkAccount.EditValue),Convert.ToInt32(lkWarehouse.EditValue),Convert.ToInt32(lkCategories.EditValue));
     DateTimePickerEx dtDate = new DateTimePickerEx();
     dtDate.Value = DateTimeHelper.ServerDateTime;
     xreport.Date.Text = dtDate.Text;
     xreport.ShowPreview();
 }