Esempio n. 1
0
        protected void Btn_print_all_Click(object sender, EventArgs e)
        {
            Int32 itoteid = 0;

            FailedtoteDAO ftdao   = new FailedtoteDAO();
            DataSet       ftclass = new DataSet();
            DataTable     fttable = new DataTable("ftotetable");



            ftclass = ftdao.Search_FTote();
            fttable = ftclass.Tables[0];

            foreach (DataRow row in fttable.Rows)
            {
                itoteid = Int32.Parse(row["tote_id"].ToString());

                string machinename = Shared.UserHostName; //System.Environment.MachineName;
                string reportname  = "9";                 //ReportNameEnum.Trolley.ToString();
                string devicetype  = "6";                 //DeviceType.ZS.ToString();
                //HttpContext.Current.Response.Write("before calling webservice " + machinename + reportname + devicetype);

                PrintService ps   = new PrintService();
                string       test = ps.PrintLabel(reportname, machinename, devicetype, itoteid, true);
                //HttpContext.Current.Response.Write("after print" + test);
            }
        }
Esempio n. 2
0
        public void BindData()
        {
            FailedtoteDAO ftdao   = new FailedtoteDAO();
            DataSet       dataSet = ftdao.Search_FTote();

            RadGrid1.DataSource = dataSet.Tables[0];
        }