Example #1
0
        private void btnReport_Click(object sender, EventArgs e)
        {
            ReportParameterData repData1 = new ReportParameterData();
            ReportParameterData repData2 = new ReportParameterData();
            ReportParameterData repData3 = new ReportParameterData();
            ReportParameterData repData4 = new ReportParameterData();

            ArrayList arr = new ArrayList();

            repData1.PARAMETERNAME = "PRODUCTTYPE";
            repData1.PARAMETERVALUE = cmbProductType.SelectedValue.ToString();
            arr.Add(repData1);

            repData2.PARAMETERNAME = "PRODUCTGROUP";
            repData2.PARAMETERVALUE = cmbProductGroup.SelectedValue.ToString();
            arr.Add(repData2);

            repData3.PARAMETERNAME = "PRODUCT";
            repData3.PARAMETERVALUE = cmbProduct.SelectedValue.ToString();
            arr.Add(repData3);

            repData4.PARAMETERNAME = "WAREHOUSE";
            repData4.PARAMETERVALUE = Appz.CurrentUserData.Warehouse.ToString();
            arr.Add(repData4);

            Reports.PreviewReport frmPreviewReport = new Reports.PreviewReport("StockRemainReport", arr);
            frmPreviewReport.ShowDialog(this);
        }
Example #2
0
        private void btnReport_Click(object sender, EventArgs e)
        {
            ReportParameterData repData1 = new ReportParameterData();
            ReportParameterData repData2 = new ReportParameterData();
            ReportParameterData repData3 = new ReportParameterData();
            ReportParameterData repData4 = new ReportParameterData();
            ReportParameterData repData5 = new ReportParameterData();
            ReportParameterData repData6 = new ReportParameterData();
            ReportParameterData repData7 = new ReportParameterData();

            ArrayList arr = new ArrayList();

            repData1.PARAMETERNAME = "REQUISITION";
            repData1.PARAMETERVALUE = cmbDocType.SelectedValue.ToString();
            arr.Add(repData1);

            //repData2.PARAMETERNAME = "DATEFROM";
            //repData2.PARAMETERVALUE = dpDateFrom.Value.ToString("dd/MM/")+dpDateFrom.Value.Year.ToString();
            //arr.Add(repData2);

            //repData3.PARAMETERNAME = "DATETO";
            //repData3.PARAMETERVALUE = dpDateTo.Value.ToString("dd/MM/") + dpDateTo.Value.Year.ToString();
            //arr.Add(repData3);

            repData2.PARAMETERNAME = "DATEFROM";
            repData2.PARAMETERVALUE = dpDateFrom.Value.Year.ToString() + dpDateFrom.Value.ToString("MMdd");
            arr.Add(repData2);

            repData3.PARAMETERNAME = "DATETO";
            repData3.PARAMETERVALUE = dpDateTo.Value.Year.ToString() + dpDateTo.Value.ToString("MMdd");
            arr.Add(repData3);

            repData4.PARAMETERNAME = "INVCODETO";
            repData4.PARAMETERVALUE = txtCodeTo.Text.Trim();
            arr.Add(repData4);

            repData5.PARAMETERNAME = "INVCODEFROM";
            repData5.PARAMETERVALUE = txtCodeFrom.Text.Trim();
            arr.Add(repData5);

            repData6.PARAMETERNAME = "CUSTOMER";
            repData6.PARAMETERVALUE = cmbCustomer.SelectedValue.ToString();
            arr.Add(repData6);

            repData7.PARAMETERNAME = "WAREHOUSE";
            repData7.PARAMETERVALUE = Appz.CurrentUserData.Warehouse.ToString();
            arr.Add(repData7);

            Reports.PreviewReport frmPreviewReport = new Reports.PreviewReport("StockoutDoctypeReport", arr);
            frmPreviewReport.ShowDialog(this);
        }
Example #3
0
        private void btnReport_Click(object sender, EventArgs e)
        {
            ReportParameterData repData1 = new ReportParameterData();
            ReportParameterData repData2 = new ReportParameterData();
            ReportParameterData repData3 = new ReportParameterData();
            ReportParameterData repData4 = new ReportParameterData();
            ReportParameterData repData5 = new ReportParameterData();
            ReportParameterData repData6 = new ReportParameterData();
            ReportParameterData repData7 = new ReportParameterData();

            ArrayList arr = new ArrayList();

            repData1.PARAMETERNAME = "PRODUCTTYPE";
            repData1.PARAMETERVALUE = cmbProductType.SelectedValue.ToString();
            arr.Add(repData1);

            repData2.PARAMETERNAME = "PRODUCTGROUP";
            repData2.PARAMETERVALUE = cmbProductGroup.SelectedValue.ToString();
            arr.Add(repData2);

            repData3.PARAMETERNAME = "PRODUCT";
            repData3.PARAMETERVALUE = cmbProduct.SelectedValue.ToString();
            arr.Add(repData3);

            repData4.PARAMETERNAME = "DATEFROM";
            repData4.PARAMETERVALUE = dpDateFrom.Value.ToString("dd/MM/") + dpDateFrom.Value.Year.ToString();
            arr.Add(repData4);

            repData5.PARAMETERNAME = "DATETO";
            repData5.PARAMETERVALUE = dpDateTo.Value.ToString("dd/MM/") + dpDateTo.Value.Year.ToString();
            arr.Add(repData5);

            repData6.PARAMETERNAME = "WAREHOUSE";
            repData6.PARAMETERVALUE = Appz.CurrentUserData.Warehouse.ToString();
            arr.Add(repData6);

            repData7.PARAMETERNAME = "CUSTOMER";
            repData7.PARAMETERVALUE = cmbCustomer.SelectedValue.ToString();
            arr.Add(repData7);

            Reports.PreviewReport frmPreviewReport = new Reports.PreviewReport("ProductReturnSummaryReport", arr);
            frmPreviewReport.ShowDialog(this);
        }
Example #4
0
        private void btnReport_Click(object sender, EventArgs e)
        {
            ReportParameterData repData = new ReportParameterData();
            ReportParameterData repData1 = new ReportParameterData();
            ReportParameterData repData2 = new ReportParameterData();
            ArrayList arr = new ArrayList();
            
            repData.PARAMETERNAME = "CODEFROM";
            repData.PARAMETERVALUE = txtInvCodeFrom.Text.Trim();
            arr.Add(repData);

            repData1.PARAMETERNAME = "CODETO";
            repData1.PARAMETERVALUE = txtInvCodeTo.Text.Trim();
            arr.Add(repData1);

            repData2.PARAMETERNAME = "WAREHOUSE";
            repData2.PARAMETERVALUE = Appz.CurrentUserData.Warehouse.ToString();
            arr.Add(repData2);

            Reports.PreviewReport frmPreviewReport = new Reports.PreviewReport("SendMoneyReport", arr);
            frmPreviewReport.ShowDialog(this);
        }
Example #5
0
 private void PrintData()
 {
     ArrayList arr = new ArrayList();
     ReportParameterData data = new ReportParameterData();
     data.PARAMETERNAME = "LOID";
     data.PARAMETERVALUE = this.txtLOID.Text;
     arr.Add(data);
     ABBClient.Reports.PreviewReport _pvReport = new ABBClient.Reports.PreviewReport(Constz.Report.Support, arr);
     _pvReport.ShowDialog();
 }
Example #6
0
 private void btnPrint_Click(object sender, EventArgs e)
 {
     if (Convert.ToDouble(this.txtLOID.Text == "" ? "0" : this.txtLOID.Text) > 0)
     {
         ArrayList arr = new ArrayList();
         ReportParameterData data = new ReportParameterData();
         data.PARAMETERNAME = "LOID";
         data.PARAMETERVALUE = this.txtLOID.Text;
         arr.Add(data);
         _pvReport = new ABBClient.Reports.PreviewReport(Constz.Report.ReturnTester, arr);
         _pvReport.ShowDialog();
     }
 }
Example #7
0
 private void Print()
 {
     if (FlowObj.UpdateData(Appz.CurrentUserData.UserID, GetData()))
     {
         ArrayList arr = new ArrayList();
         ReportParameterData data = new ReportParameterData();
         data.PARAMETERNAME = "LOID";
         data.PARAMETERVALUE = this.txtLOID.Text;
         arr.Add(data);
         _pvReport = new ABBClient.Reports.PreviewReport(Constz.Report.Invoice, arr);
         this.Close();
         _pvReport.ShowDialog();
     }
     else
     {
         Appz.OpenErrorDialog(FlowObj.ErrorMessage);
     }
 }
Example #8
0
 private void btnPrint_Click(object sender, EventArgs e)
 {
     ArrayList arr = new ArrayList();
     ReportParameterData data = new ReportParameterData();
     data.PARAMETERNAME = "LOID";
     data.PARAMETERVALUE = this.txtLOID.Text;
     arr.Add(data);
     _pvReport = new ABBClient.Reports.PreviewReport(Constz.Report.ProductStockInShop, arr);
     _pvReport.ShowDialog();
 }