示例#1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string TemplateType = Request.QueryString["TemplateType"];

        WsSystem ws  = new WsSystem();
        PrintSet obj = ws.QueryPrintSetPath(TemplateType);

        if (obj != null)
        {
            string name = string.Empty;
            if (obj.MEMO == "箱号模板")
            {
                name = "csn.lab";
            }
            if (obj.MEMO == "条码模板")
            {
                name = "psn.lab";
            }
            else
            {
                name = "msn.lab";
            }
            downloadfile(obj.TemplatePath, name);
        }
    }