Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            context = new SaalutDataClasses1DataContext();

            if (Request.QueryString["GID"] == null)
            {
                //ClientScript.RegisterStartupScript(typeof(Page), "closePage", "window.close();", true);
                Response.Redirect("TermoTickets.aspx");
            }


            Int32.TryParse(Request.QueryString["GID"], out goodID);
            Int32.TryParse(Request.QueryString["TID"], out typeID);
            Int32.TryParse(Request.QueryString["QTY"], out qty);
            Int32.TryParse(Request.QueryString["PID"], out printerID);

            string dateTm = Session["DataVremTextBox1"].ToString();

            if (goodID == 0)
            {
                //ClientScript.RegisterStartupScript(typeof(Page), "closePage", "window.close();", true);
                Response.Redirect("TermoTickets.aspx");
            }



            //------
            if (!IsPostBack)
            {
                TermLabelUtils utl = new TermLabelUtils();
                utl.PrintTermoLabel(goodID, typeID, qty, printerID, dateTm);
            }
        }
Exemplo n.º 2
0
        protected void ThermolabelButton1_Click(object sender, EventArgs e)
        {
            TermLabelUtils utl = new TermLabelUtils();

            utl.PrintTermoLabel(20791, 1, 3, 0, "01.01.2012");
        }