Example #1
0
 public void POPrint(bool isPrint)
 {
     try
     {
         SM_PORDER porder = this.editData as SM_PORDER;
         if (porder.STATUS == "A")
         {
             string poid      = G.Core.GConvert.ToString(porder.POID);
             string condition = string.Format("poid='{0}'", poid);
             G.Controls.Printer.PrintHelper printobj = new G.Controls.Printer.PrintHelper(@"\Pur\PORDER.frx", new List <string>()
             {
                 "Master", "Detail"
             }, "poprint", condition);
             printobj.Print(isPrint);
         }
         else
         {
             MessageBox.Show("该订单没有审核不能打印!");
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Example #2
0
 public void SHIPVPrint(bool isPrint)
 {
     try
     {
         string shipvid   = G.Core.GConvert.ToString(this.TXT_SHIPVID.Text);
         string condition = string.Format("SHIPVID='{0}'", shipvid);
         G.Controls.Printer.PrintHelper printobj = new G.Controls.Printer.PrintHelper(@"\Pur\SHIPVOUCHERLIST.frx", new List <string>()
         {
             "QryMaster", "QryDetail"
         }, "shipvprint", condition);
         printobj.Print(isPrint);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Example #3
0
 public void ShopSupplyPrint(bool isPrint)
 {
     try
     {
         SM_SHOPSUPPLY shopsupply = this.editData as SM_SHOPSUPPLY;
         string        supplyid   = G.Core.GConvert.ToString(shopsupply.SUPPLYID);
         string        condition  = string.Format("supplyid='{0}'", supplyid);
         G.Controls.Printer.PrintHelper printobj = new G.Controls.Printer.PrintHelper(@"\Storage\STORAGE.frx", new List <string>()
         {
             "Master", "Detail"
         }, "shopsupplyprint", condition);
         printobj.Print(isPrint);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Example #4
0
 private void PocketPrint2(bool isprint)
 {
     try
     {
         SM_POCKET pocket    = this.editData as SM_POCKET;
         string    pockid    = G.Core.GConvert.ToString(pocket.POCKID);
         string    condition = string.Format("pockid='{0}'", pockid);
         G.Controls.Printer.PrintHelper printobj = new G.Controls.Printer.PrintHelper(@"\Sale\POCKET2.frx", new List <string>()
         {
             "Master", "Detail"
         }, "pocketprint", condition);
         printobj.Print(isprint);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Example #5
0
 public void WorkOrderPrint(bool isPrint)
 {
     try
     {
         string condition = string.Format("WORKSHOP='{0}' AND A.ORDERID='{1}'", gxname, orderid);
         G.Controls.Printer.PrintHelper printobj = new G.Controls.Printer.PrintHelper(@"\Shop\WORKORDER.frx", new List <string>()
         {
             "QryMaster"
         }, "workorderprint", condition);
         printobj.Print(isPrint);
         if (!isPrint)
         {
             return;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Example #6
0
        private void CertPrint2(bool isprint)
        {
            try
            {
                SM_POCKET pocket = this.editData as SM_POCKET;
                string    pockid = G.Core.GConvert.ToString(pocket.POCKID);
                string    sqlstr = string.Format("EXEC SMProc_GetCertData '{0}'", pockid);
                DataSet   ds     = DbEntry.Provider.ExecuteDataset(sqlstr);

                G.Controls.Printer.PrintHelper printobj = new G.Controls.Printer.PrintHelper(@"\Sale\CERTIFICATE2.frx", new List <string>()
                {
                    "Master"
                }, ds);
                printobj.Print(isprint);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Example #7
0
 private void BTN_SALEORDERPRINT_Click(object sender, EventArgs e)
 {
     try
     {
         bool   isprint   = G.Core.GConvert.ToBool(this.CHECK_ISYL.Value);
         string condition = string.Format("orderid='{0}'", orderid);
         G.Controls.Printer.PrintHelper printobj = new G.Controls.Printer.PrintHelper(@"\Sale\SALEORDER.frx", new List <string>()
         {
             "Master", "Detail"
         }, "saleorderprint", condition);
         printobj.Print(!isprint);
         if (printtag == false)
         {
             this.InsertSaleOrderStatus();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Example #8
0
 public void SHIPVPrint(bool isPrint)
 {
     try
     {
         DataRow drow = this.GetCurSelect();
         if (drow == null)
         {
             return;
         }
         string shipvid   = G.Core.GConvert.ToString(drow["SHIPVID"]);
         string condition = string.Format("SHIPVID='{0}'", shipvid);
         G.Controls.Printer.PrintHelper printobj = new G.Controls.Printer.PrintHelper(@"\Pur\SHIPVOUCHER.frx", new List <string>()
         {
             "QryMaster", "QryDetail"
         }, "shipvprint", condition);
         printobj.Print(isPrint);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Example #9
0
 public void POPrint(bool isPrint)
 {
     try
     {
         DataRow drow = this.GetCurSelect();
         if (drow == null)
         {
             return;
         }
         string poid      = G.Core.GConvert.ToString(drow["POID"]);
         string condition = string.Format("poid='{0}'", poid);
         G.Controls.Printer.PrintHelper printobj = new G.Controls.Printer.PrintHelper(@"\Pur\PORDER.frx", new List <string>()
         {
             "Master", "Detail"
         }, "poprint", condition);
         printobj.Print(isPrint);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }