Beispiel #1
0
 private void simpleButton1_Click(object sender, EventArgs e)
 {
     var gr = new GridPrintingClass();
     gr.Heading1 = Utils.Companyname;
     gr.Heading2 = "Items List";
     gr.DoPrint(gridControl1);
 }
        private void simpleButton1_Click(object sender, EventArgs e)
        {

            if (gridView1.DataRowCount == 0)
            {
                XtraMessageBox.Show("No data found", "POS", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            if (lookUpEdit3.EditValue != null)
            {
                strcnme = lookUpEdit3.GetColumnValue("STORENAME").ToString();
            }

            string h2 = _usesecondgrid ? "Insurance Sales By Item wise :" : "Part Payment List From : ";
            var bl = new GridPrintingClass
            {
                Heading1 = strcnme,
                Heading2 = h2  
                      + dateEdit1.DateTime.ToString("dd-MM-yyyy") + " To : " +
                    dateEdit2.DateTime.ToString("dd-MM-yyyy") + " "
            };
            if (_usesecondgrid)
            {
                bl.DoPrint(gridControl2,true);
            }
            else
            {
             bl.DoPrint(gridControl1);
            }
        }
 private void barButtonItem1_ItemClick(object sender, ItemClickEventArgs e)
 {
     var cl = new GridPrintingClass();
     cl.Heading1 = Utils.Companyname;
     cl.Heading2 = "Purchase Request List";
     cl.DoPrint(gridControl1);
   //  gridView1.ShowPrintPreview();
 }
 private void simpleButton1_Click(object sender, EventArgs e)
 {
     var cl = new GridPrintingClass();
     //dd-MMM-yy
      
     cl.Heading1 = "Consolidated Sales Report From : " + dateEdit1.DateTime.ToString("dd-MMM-yy") + " To: " + dateEdit2.DateTime.ToString("dd-MMM-yy") + "";
     cl.DoPivoitPrint(pivotGridControl1);
 }
 private void simpleButton3_Click(object sender, EventArgs e)
 {
     var cl = new GridPrintingClass();
     cl.Heading1 = Utils.Companyname;
     cl.Heading2 = "Stock Transfer to " + LookuptoStore.Text + "Date From :" +
                   dateEdit1.DateTime.ToString("dd-MM-yyyy") + " To " + dateEdit2.DateTime.ToString("dd-MM-yyyy");
     cl.DoPrint(gridControl1);
 }
Beispiel #6
0
 private void SimpleButton3Click(object sender, EventArgs e)
 {
     var c = new GridPrintingClass{
                     Heading1 = Utils.Companyname,
                     Heading2 = _heading + DateTime.Now.ToShortDateString()
                 };
     c.DoPrint(gridControl1);
 }
 private void toolStripButton1_Click(object sender, EventArgs e)
 {
      var c = new GridPrintingClass
     {
         Heading1 = strcnme,
         Heading2 = "Sales Target item detail Report "
     };
     c.DoPrint(gridControl1);
 }
Beispiel #8
0
 private void simpleButton3_Click(object sender, EventArgs e)
 {
     var c = new GridPrintingClass
     {
         Heading1 = Utils.Companyname,
         Heading2 = "Sales Cancel / Delete Report From " + dateEdit1.DateTime.ToString("dd-MM-yyyy") + "  To " + dateEdit2.DateTime.ToString("dd-MM-yyyy") 
     };
     c.DoPrint(gridControl1);
 }
 private void button2_Click(object sender, EventArgs e)
 {
     progressPanel1.Visible = false;
     var pr = new GridPrintingClass();
     pr.Footer2 = DateTime.Now.ToString();
     pr.Heading1 = Utils.Companyname;
     pr.Heading2 = "Inventory Status";
     pr.DoPrint(gridControl1);
 }
Beispiel #10
0
 private void simpleButton3_Click(object sender, EventArgs e)
 {
   if(gridView1.DataRowCount > 0)
   {
       var cl = new GridPrintingClass();
       cl.Heading1 = Utils.Companyname;
       cl.Heading2 = "Bonus Report from " + dateEdit1.DateTime.ToString("dd-MM-yyyy") + " to " + dateEdit2.DateTime.ToString("dd-MM-yyyy");
       cl.DoPrint(gridControl1);
   }
 }
Beispiel #11
0
 private void barButtonItem1_ItemClick(object sender, ItemClickEventArgs e)
 {
     if (gridView1.DataRowCount > 0)
     {
         var cl = new GridPrintingClass();
         cl.Heading1 = Utils.Companyname;
         cl.Heading2 = "Multiple Price Items List " ;
         cl.DoPrint(gridControl1);
     }
 }
Beispiel #12
0
 private void simpleButton3_Click(object sender, EventArgs e)
 {
     var pr = new GridPrintingClass
     {
         Footer2 = DateTime.Now.ToString(),
         Heading1 = Utils.Companyname,
         Heading2 = "ITEMS NOT SCANNED"
     };
     pr.DoPrint(gridControl2);
 }
Beispiel #13
0
        private void simpleButton2_Click(object sender, EventArgs e)
        {
            var pr = new GridPrintingClass
            {
                Footer2 = DateTime.Now.ToString(),
                Heading1 = Utils.Companyname,
                Heading2 = "STOCK DIFFRENCE REPORT"
            };

            pr.DoPrint(gridControl1);
        }
Beispiel #14
0
 private void simpleButton1_Click(object sender, EventArgs e)
 {
     if (gridView1.DataRowCount == 0)
     {
         XtraMessageBox.Show("No data found", "POS", MessageBoxButtons.OK, MessageBoxIcon.Information);
         return;
     }
     var bl = new GridPrintingClass();
     bl.Heading1 = Utils.Companyname;
     bl.Heading2 = "Category wise Sales Report From : " + dateEdit1.DateTime.ToString("dd-MM-yyyy") + " To : " + dateEdit2.DateTime.ToString("dd-MM-yyyy") + " ";
     bl.DoPrint(gridControl1);
 }
Beispiel #15
0
 private void simpleButton1_Click(object sender, EventArgs e)
 {
     if(bandedGridView1.DataRowCount==0)
         return;
     var bl = new GridPrintingClass
     {
         Heading1 = Utils.Companyname,
         Heading2 =
             "Item Movement Report From : " + dateEdit1.DateTime.ToString("dd-MM-yyyy") + " To : " +
             dateEdit2.DateTime.ToString("dd-MM-yyyy") + ""
     };
     bl.DoPrint(gridControl2);
 }
 private void simpleButton2_Click(object sender, EventArgs e)
 {
     if (lookUpEdit3.EditValue != null)
     {
         strcnme = lookUpEdit3.GetColumnValue("STORENAME").ToString();
     }
    
    var c = new GridPrintingClass
     {
         Heading1 = strcnme,
         Heading2 = "Sales Target Report Period " + lookUpEdit1.GetColumnValue("PROMONAME")
     };
     c.DoPrint(gridControl1);
 }
Beispiel #17
0
        private void PrintInvList()
        {
            var cl = new GridPrintingClass();
            cl.Heading1 = Utils.Companyname;
            cl.Heading2 = "Purchase Invoice List";
            cl.DoPrint(gridControl1);
            //var link = new PrintableComponentLink(new PrintingSystem())
            //               {
            //                   Margins = {Left = 10, Right = 10, Top = 100, Bottom = 90},
            //                   Landscape = false,
            //                   PaperKind = PaperKind.A4,
            //                   Component = gridControl1
            //               };

            //var footer = new PageFooterArea();
            //footer.Content.Add("Printed on " + "[Date Printed]" + " by " + VIRETAILDAL.COMMON.Utils.Username);
            //footer.Content.Add("Page " + "[Page #]");
            //footer.LineAlignment = BrickAlignment.Near;
            //var header = new PageHeaderArea();
            //link.CreateMarginalHeaderArea += CreateMarginalDetailHeaderArea;
            //link.PageHeaderFooter = new PageHeaderFooter(header, footer);
            //link.PrintingSystem.SetCommandVisibility(PrintingSystemCommand.Save, CommandVisibility.None);
            //link.PrintingSystem.SetCommandVisibility(PrintingSystemCommand.Watermark, CommandVisibility.None);
            //link.PrintingSystem.SetCommandVisibility(PrintingSystemCommand.FillBackground, CommandVisibility.None);
            //link.PrintingSystem.SetCommandVisibility(PrintingSystemCommand.HandTool, CommandVisibility.None);
            //link.PrintingSystem.SetCommandVisibility(PrintingSystemCommand.Open, CommandVisibility.None);
            //link.PrintingSystem.SetCommandVisibility(PrintingSystemCommand.Customize, CommandVisibility.None);
            //link.PrintingSystem.SetCommandVisibility(PrintingSystemCommand.Scale, CommandVisibility.None);
            //link.PrintingSystem.SetCommandVisibility(PrintingSystemCommand.Parameters, CommandVisibility.None);
            //link.PrintingSystem.SetCommandVisibility(PrintingSystemCommand.SubmitParameters, CommandVisibility.None);
            //link.PrintingSystem.SetCommandVisibility(PrintingSystemCommand.Background, CommandVisibility.None);
            //link.PrintingSystem.SetCommandVisibility(PrintingSystemCommand.None, CommandVisibility.None);
            //link.PrintingSystem.SetCommandVisibility(PrintingSystemCommand.DocumentMap, CommandVisibility.None);
            //link.PrintingSystem.PreviewRibbonFormEx.RibbonControl.Pages["Print Preview"].Groups["Document"].Visible =false;
            //link.PrintingSystem.PreviewRibbonFormEx.RibbonControl.Pages["Print Preview"].Groups["Background"].Visible =false;
            //link.PrintingSystem.PreviewRibbonFormEx.RibbonControl.Pages["Print Preview"].Groups["Zoom"].Visible =false;
            //link.CreateDocument();
            //link.PrintingSystem.Document.AutoFitToPagesWidth = 1;
            //link.ShowRibbonPreview(UserLookAndFeel.Default);
        }
        private void barButtonItem2_ItemClick(object sender, ItemClickEventArgs e)
        {
            var c= new GridPrintingClass();
            //dd-MMM-yy

            c.Heading1 = "Consolidated Inventory Report for " + checkedComboBoxEdit1.Properties.GetCheckedItems();
            c.DoPrint(gridControl1);
            //cl.DoPivoitPrint(pivotGridControl1);
        }
        private void simpleButton1_Click(object sender, EventArgs e)
        {

                if (lookUpEdit3.EditValue != null)
                {
                    strcnme = lookUpEdit3.GetColumnValue("STORENAME").ToString();
                }
                var cl = new GridPrintingClass {Heading1 = strcnme, Heading2 = Text};
              cl.DoPrint(gridControl1);
            
        }
Beispiel #20
0
 private void simpleButton1_Click(object sender, EventArgs e)
 {
     var cl = new GridPrintingClass();
     //dd-MMM-yy
     if (lookUpEdit1.EditValue != null)
     {
         cl.Heading1 = lookUpEdit1.GetColumnValue("STORENAME").ToString();
     }
     else
     cl.Heading1 = Utils.Companyname;
     cl.Heading2 = "Sales Report From : " + dateEdit1.DateTime.ToString("dd-MMM-yy") + " To: " + dateEdit2.DateTime.ToString("dd-MMM-yy") + "";
     cl.DoPivoitPrint(pivotGridControl1);
    // pivotGridControl1.ShowPrintPreview();
 }
Beispiel #21
0
 void DoPrint()
 {
     var gridprn = new GridPrintingClass();
     gridprn.Heading1 = "Inventory Adjustment Report";
     gridprn.Heading2 = "Location : " + Lookupwarehouse.Text + "            " + " Doc # :" + textBox1.Text;
     gridprn.DoPrint(gridControl1);
 }
Beispiel #22
0
        void KeyF9()
        {
            if (XtraMessageBox.Show("Do you want to save", "POS", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
            {
                if (GetTotalAppliedAmount() != decimal.Parse(txtappliedamt.EditValue.ToString()))
                {
                    XtraMessageBox.Show("Recevied amount is not matching with applied amount", "POS",MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
                else
                {
                    var bl = new BlCustomerPayments
                    {
                        customerno = lookupcustomer.EditValue.ToString(),
                        trandate = dateEdit1.DateTime.Date,
                        outstanding = decimal.Parse(txtoutstanding.EditValue.ToString()),
                        AppliedAmt = decimal.Parse(txtappliedamt.EditValue.ToString()),
                        AparmainDataTable = ledgers1.APARMAIN,
                        userid = userid,
                        shiftcode =shiftcode,
                        amountype = paytype
                    };

                    var ret = bl.DoSave();
                    txtbalance.EditValue = decimal.Parse(txtoutstanding.EditValue.ToString()) - decimal.Parse(txtbalance.EditValue.ToString());
                    if (ret == "1")
                    {
                        textEdit3.EditValue = Utils.CustomerReceipt;
                        XtraMessageBox.Show("Data Saved", "POS", MessageBoxButtons.OK, MessageBoxIcon.Information);
                        var blp = new GridPrintingClass();
                        blp.Heading1 = Utils.Companyname;
                        blp.Heading2 = "Customer Receipt  for  " + lookupcustomer.GetColumnValue("CUSTOMERNAME") + "";
                        blp.useHeading3 = true;
                        blp.Heading3 = " Date  = " +
                                       dateEdit1.DateTime.ToString("dd-MM-yyyy") + "   Paid Amount = " + txtappliedamt.EditValue + "";
                        blp.DoPrint(gridControl1);
                        button1.Visible = true;
                        button2.Visible = true;
                        panelcards.Visible = false;
                        panelcards.SendToBack();
                        lookupcustomer.EditValue = null;
                        txtoutstanding.EditValue = 0;
                        txtappliedamt.EditValue = 0;
                        Close();
                    }
                }
            }
        }
Beispiel #23
0
 private void barButtonItem2_ItemClick(object sender, ItemClickEventArgs e)
 {
     if (gridView1.DataRowCount > 0)
     {
         var bl = new GridPrintingClass();
         bl.Heading1 = Utils.CompanyAddress;
         bl.Heading1 = "Stock Receving Report";
         bl.DoPrint(gridControl1);
        // gridView1.ShowPrintPreview();
     }
 }
        private void barButtonItem2_ItemClick(object sender, ItemClickEventArgs e)
        {
            var c = new GridPrintingClass();
            //dd-MMM-yy

            c.Heading1 = "Stock Comparision Inventory Report from Store " + lookUpEdit1.SelectedText + " To Store " + lookUpEdit2.SelectedText  ;
            c.DoPrint(gridControl1);
        }
 private void simpleButton3_Click(object sender, EventArgs e)
 {
     if (gridView1.DataRowCount > 0)
     {
         var cl = new GridPrintingClass();
         cl.Heading1 = Utils.Companyname;
         cl.Heading2 = "Item name / Code :" + textEdit2.Text  +  "   " + textEdit1.Text;
         cl.useHeading3 = true;
         cl.Heading3 = "Itemwise Purchasing Report from " + dateEdit1.DateTime.ToString("dd-MM-yyyy") + " to " + dateEdit2.DateTime.ToString("dd-MM-yyyy");
         cl.Footer1 = "Total Qty = " + colQTY.SummaryText;
         cl.Footer2 = "Total Bonus =" + colBONUSQTY.SummaryText;
         cl.DoPrint(gridControl1);
     }
 }
Beispiel #26
0
 private void barButtonItem7_ItemClick(object sender, ItemClickEventArgs e)
 {
     progressPanel1.Visible = false;
     var pr = new GridPrintingClass();
     pr.Footer1 = _SummaryText;
     pr.Footer2 = DateTime.Now.ToString();
     pr.Heading1 = Utils.Companyname;
     pr.Heading2 = _GridHeading;
     pr.DoPrint(gridControl1);
 }
Beispiel #27
0
 private void simpleButton3_Click(object sender, EventArgs e)
  {
      var bl = new GridPrintingClass();
      if (xtraTabControl1.SelectedTabPageIndex == 0)
      {
          bl.Heading1 = cmpname;
          bl.Heading2 = "Out going inventory report From :'" + d1.DateTime.Date.ToString("dd-MMM-yy") + "' To : '" + d2.DateTime.Date.ToString("dd-MMM-yy") +
                        "'";
          bl.DoPrint(gridControl1);
      }
      if (xtraTabControl1.SelectedTabPageIndex == 1)
      {
          bl.Heading1 = cmpname;
          bl.Heading2 = "Incomming inventory report From :'" + d1.DateTime.Date.ToString("dd-MMM-yy") + "' To : '" + d2.DateTime.Date.ToString("dd-MMM-yy") +
                        "'";
          bl.DoPrint(gridControl2);
      }
      if (xtraTabControl1.SelectedTabPageIndex == 2)
      {
          bl.Heading1 = cmpname;
          bl.Heading2 = "Out going inventory details report From :'" + d1.DateTime.Date.ToString("dd-MMM-yy") + "' To : '" + d2.DateTime.Date.ToString("dd-MMM-yy") +
                        "'";
          bl.DoPrint(gridControl3,true);
      }
      if (xtraTabControl1.SelectedTabPageIndex == 3)
      {
          bl.Heading1 = cmpname;
          bl.Heading2 = "Incomming inventory details report From :'" + d1.DateTime.Date.ToString("dd-MMM-yy") + "' To : '" + d2.DateTime.Date.ToString("dd-MMM-yy") +
                        "'";
          bl.DoPrint(gridControl4, true);
      }    
  }
Beispiel #28
0
 private void simpleButton1_Click(object sender, EventArgs e)
 {
     if (gridView1.DataRowCount == 0) return;
     
     string heading1 = string.Empty;
     heading1 = RptType ? "Purchase Invoice Report" : "Purchase Return Report";
     _rptheading1 += " From Date : " + dateEdit1.DateTime.ToShortDateString() + "  To Date : " + dateEdit2.DateTime.ToShortDateString() ;
     var bl = new GridPrintingClass { Heading1 = heading1, Heading2 = _rptheading1 };
     bl.DoPrint(gridControl1);
 }
 private void barButtonItem12_ItemClick(object sender, ItemClickEventArgs e)
 {
     var cl = new GridPrintingClass();
     cl.Heading1 = "Purchase Request List";
     cl.DoPrint(gridControl2);
 }
Beispiel #30
0
 private void btnprint_ItemClick(object sender, ItemClickEventArgs e)
 {
     var bl = new GridPrintingClass();
     bl.Heading1 = VIRETAILDAL.COMMON.Utils.Companyname;
     bl.Heading1 = "Supplier Payement List                " + "Batch No: " +_Batchno;
     bl.DoPrint(gridControl1);
 }