Ejemplo n.º 1
0
 void Buttestprint_Click(object sender, EventArgs e)
 {
     mmDevice = null;
     findBTPrinter ();
     if (mmDevice != null) {
         string userid = ((GlobalvarsApp)this.Application).USERID_CODE;
         PrintInvHelper prnHelp = new PrintInvHelper (pathToDatabase, userid);
         string msg =prnHelp.OpenBTAndPrintTest(mmSocket, mmDevice);
         Toast.MakeText (this, msg, ToastLength.Long).Show ();
     }
 }
Ejemplo n.º 2
0
 void StartPrint(CNNote inv,CNNoteDtls[] list,int noofcopy )
 {
     string userid = ((GlobalvarsApp)this.Application).USERID_CODE;
     PrintInvHelper prnHelp = new PrintInvHelper (pathToDatabase, userid,compCode,branchCode);
     string msg =prnHelp.OpenBTAndPrintCN (mmSocket, mmDevice, inv, list,noofcopy);
     Toast.MakeText (this, msg, ToastLength.Long).Show ();
 }
Ejemplo n.º 3
0
        void PrintInvSumm(DateTime printdate1,DateTime printdate2)
        {
            mmDevice = null;
            findBTPrinter ();

            if (mmDevice == null)
                return;

            string userid = ((GlobalvarsApp)this.Application).USERID_CODE;
            PrintInvHelper prnHelp = new PrintInvHelper (pathToDatabase, userid);
            string msg = prnHelp.PrintInvSumm(mmSocket, mmDevice,printdate1,printdate2);
            Toast.MakeText (this, msg, ToastLength.Long).Show ();
        }
Ejemplo n.º 4
0
 void StartPrint(Invoice inv,InvoiceDtls[] list,int noofcopy )
 {
     string userid = ((GlobalvarsApp)this.Application).USERID_CODE;
     PrintInvHelper prnHelp = new PrintInvHelper (pathToDatabase, userid);
     string msg =prnHelp.OpenBTAndPrint (mmSocket, mmDevice, inv, list,noofcopy);
     Toast.MakeText (this, msg, ToastLength.Long).Show ();
     //AlertShow (msg);
 }