Exemplo n.º 1
0
        public static ArrayList ListPageBtnEx(string emcode, string btype, string tab)
        {
            ArrayList           r    = new ArrayList();
            BusiEventButtonBll  bebb = new BusiEventButtonBll();
            SessionUserValidate iv   = SysValidateBll.ValidateSession();

            if (iv.f)
            {
                r.Add(iv.badstr);
                Sys_Domain        ym  = sdb.Query(" and dtype='p'");
                List <Sys_Button> lsb = bebb.QueryBtnListEx(emcode, iv.u.rcode, btype, tab);
                if (lsb != null)
                {
                    foreach (Sys_Button s in lsb)
                    {
                        ArrayList al   = new ArrayList();
                        string    burl = sbib.QueryBurl(s.bico);
                        al.Add(s.babc);
                        al.Add(s.bname);
                        al.Add(s.bfn.Replace(",", "_"));
                        al.Add(s.burl);
                        al.Add(s.bstyle);
                        al.Add(s.btip);
                        s.bico = burl != "" ? ym.url + burl : "";
                        al.Add(s.bico);
                        r.Add(al);
                    }
                }
            }
            else
            {
                r.Add(iv.badstr);
            }
            return(r);
        }
Exemplo n.º 2
0
        public static string QueryImg(string pcode)
        {
            string              r    = "";
            Sys_ProduceImgBll   snsb = new Sys_ProduceImgBll();
            SessionUserValidate iv   = SysValidateBll.ValidateSession();

            if (iv.f)
            {
                string         icode = snsb.GetProductionImg(pcode);
                Sys_ProduceImg si    = snsb.Query(" and icode='" + icode + "'");
                if (si != null)
                {
                    Sys_Domain sd = sdb.Query(" and dtype='p'");
                    if (sd != null)
                    {
                        si.iurl  = sd.url + si.iurl;
                        si.ifurl = sd.url + si.ifurl;
                    }
                }
                r = js.Serialize(si);
            }
            else
            {
                r = iv.badstr;
            }
            return(r);
        }
Exemplo n.º 3
0
        public static string QueryQtImg()
        {
            string r = "F";
            SessionUserValidate iv = SysValidateBll.ValidateSession();

            if (iv.f)
            {
                string           url = "";
                Sys_Domain       sd  = sdb.Query(" and dtype='p'");
                Sys_WxChatConfig wc  = swccb.Query(" and acode='0001'");
                if (wc != null)
                {
                    url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=" + wc.appid + "&redirect_uri=" + wc.aurl + "&response_type=" + iv.u.eno + "&scope=snsapi_userinfo&state=STATE#wechat_redirect";
                    string img = qcb.CreateFQtCode(System.Web.HttpContext.Current.Server.MapPath("/UpFile/ImageMeasure/"), url);
                    swccb.setImg("0001", "/UpFile/ImageMeasure/" + img);
                    //r = sd.url+"/UpFile/ImageMeasure/" + img;
                    r = "../../../UpFile/ImageMeasure/" + img;
                }
            }
            else
            {
                r = "F";
            }
            return(r);
        }
Exemplo n.º 4
0
        public JsonResult QueryList()
        {
            JsonData            d  = new JsonData();
            ArrayList           r  = new ArrayList();
            SessionUserValidate iv = SysValidateBll.ValidateSession();

            if (iv.f)
            {
                r.Add(iv.badstr);
                string where = "";
                if (iv.u.rcode != "xtgl")
                {
                    where = " and dcode='" + iv.u.dcode.Substring(0, 8) + "'";
                }
                List <Sys_Templet> ls = stb.QueryList(where);
                if (ls != null)
                {
                    Sys_Domain sd = sdb.Query(" and dtype='p'");
                    foreach (Sys_Templet sw in ls)
                    {
                        ArrayList al = new ArrayList();
                        al.Add(sw.id);
                        al.Add(sw.emname);
                        al.Add(sw.ttype);
                        if (sw.ttype == "h")
                        {
                            al.Add(sw.ttext + "</table>");
                        }
                        if (sw.ttype == "f")
                        {
                            al.Add("<table> " + sw.ttext);
                        }
                        if (sw.ttype == "b")
                        {
                            al.Add("<table> " + sw.ttext + "</table>");
                        }
                        al.Add(sw.utype);
                        al.Add(sw.ptype);
                        if (sw.limg != "")
                        {
                            al.Add("<img src='" + sd.url + sw.limg + "' alt=''/>");
                        }
                        else
                        {
                            al.Add("");
                        }
                        r.Add(al);
                    }
                }
            }
            else
            {
                r.Add(iv.badstr);
            }
            d.d = js.Serialize(r);
            return(Json(d));
        }
Exemplo n.º 5
0
        public static string PrepareOrderAttrImg(string sid)
        {
            string              r    = "";
            StringBuilder       hstr = new StringBuilder();
            SessionUserValidate iv   = SysValidateBll.ValidateSession();

            if (iv.f)
            {
                Sys_Domain    sd  = sdb.Query(" and dtype='p'");
                string        zt  = bosb.QueryOrderStateImg(sid);
                B_Attachment  ba  = bmib.Query(" and sid='" + sid + "'");
                CB_OrderState cos = cbsb.Query("and sid='" + sid + "'");
                hstr.Append("<table style='border:none; width:100%'> ");
                hstr.AppendFormat("<tr><td align='center' height='40'><strong>状态:</strong></td><td align='center'><img src='{0}'></td></tr>", zt);
                hstr.AppendFormat("<tr><td align='center'height='40'><strong>日志:</strong></td><td align='center'><img src='" + sd.url + "/Image/opeimage/makep.png' id='{0}' onclick='ShowLogs(this.id)' style='cursor:pointer'/></td></tr>", sid);
                if (ba != null)
                {
                    hstr.AppendFormat("<tr><td align='center'height='40'><strong>附件:</strong></td><td align='center'><img src='" + sd.url + "/Image/opeimage/zip.gif' id='{0}' onclick='ShowAttachment(this.id)'style='cursor:pointer'/></td></tr>", sid);
                }
                if (cos != null)
                {
                    if (cos.iproduce > 0)
                    {
                        hstr.AppendFormat("<tr><td align='center'height='40'><strong>工单:</strong></td><td align='center'><img src='" + sd.url + "/Image/opeimage/has.png' id='{0}' style='cursor:pointer'/></td></tr>", sid);
                    }
                    else
                    {
                        hstr.AppendFormat("<tr><td align='center'height='40'><strong>工单:</strong></td><td align='center'><img src='" + sd.url + "/Image/opeimage/cancel.png' id='{0}' style='cursor:pointer'/></td></tr>", sid);
                    }
                    if (cos.iwjbh > 0)
                    {
                        hstr.AppendFormat("<tr><td align='center'height='40'><strong>备货:</strong></td><td align='center'><img src='" + sd.url + "/Image/opeimage/has.png' id='{0}' style='cursor:pointer'/></td></tr>", sid);
                    }
                    else
                    {
                        hstr.AppendFormat("<tr><td align='center'height='40'><strong>备货:</strong></td><td align='center'><img src='" + sd.url + "/Image/opeimage/cancel.png' id='{0}' style='cursor:pointer'/></td></tr>", sid);
                    }
                }
                hstr.Append("</table>");
                r = hstr.ToString();
            }
            else
            {
                r = iv.badstr;
            }
            return(r);
        }
Exemplo n.º 6
0
        public JsonResult YdQuery()
        {
            JsonData            d  = new JsonData();
            SessionUserValidate iv = SysValidateBll.ValidateSession();

            if (iv.f)
            {
                Sys_Domain sa = new Sys_Domain();
                sa  = sdb.Query(" and  dtype='w'");
                d.d = sa.url;
            }
            else
            {
                d.d = iv.badstr;
            }
            return(Json(d));
        }
Exemplo n.º 7
0
        public JsonResult QueryAzFixImgListZip(string sid)
        {
            JsonData            d      = new JsonData();
            StringBuilder       divstr = new StringBuilder();
            SessionUserValidate iv     = SysValidateBll.ValidateSession();

            if (iv.f)
            {
                List <B_FixecImg> bfggi = bfib.QueryList(" and sid='" + sid + "' order by id ");
                if (bfggi != null)
                {
                    Sys_Domain wd   = sdb.Query(" and dtype='w'");
                    Sys_Domain pd   = sdb.Query(" and dtype='p'");
                    string     wurl = wd == null ? "" : wd.url;
                    string     purl = pd == null ? "" : pd.url;
                    divstr.Append("<div style='width:100%'>");
                    foreach (B_FixecImg bg in bfggi)
                    {
                        divstr.Append("<div style='width:100px;height:100px;float:left'>");
                        divstr.Append("<div style='width:100px;height:20px;float:left'>");
                        divstr.AppendFormat("<img id='{0}' src='../../../Image/opeimage/close.gif' style='cursor:pointer;float:right' onclick='DelAzImg(this.id)'/>", bg.id);
                        divstr.Append("</div>");
                        divstr.Append("<div style='width:100px;height:80px;float:right'>");
                        if (bg.domain == "w")
                        {
                            divstr.AppendFormat("<img src='{0}' style='width:80px;height:80px;'/>", wurl + bg.url);
                        }
                        if (bg.domain == "p")
                        {
                            divstr.AppendFormat("<img src='{0}' style='width:80px;height:80px;'/>", purl + bg.url);
                        }
                        divstr.Append("</div>");
                        divstr.Append("</div>");
                    }
                    divstr.Append("</div>");
                }
                d.d = divstr.ToString();
            }
            else
            {
                d.d = iv.badstr;
            }
            return(Json(d));
        }
Exemplo n.º 8
0
        public JsonResult QueryAzFixImgList(string sid)
        {
            JsonData            d      = new JsonData();
            StringBuilder       divstr = new StringBuilder();
            SessionUserValidate iv     = SysValidateBll.ValidateSession();

            if (iv.f)
            {
                List <B_FixecImg> bfggi = bfib.QueryList(" and sid='" + sid + "' order by id ");
                if (bfggi != null)
                {
                    Sys_Domain wd   = sdb.Query(" and dtype='w'");
                    Sys_Domain pd   = sdb.Query(" and dtype='p'");
                    string     wurl = wd == null ? "" : wd.url;
                    string     purl = pd == null ? "" : pd.url;
                    divstr.Append("<div style='width:100%'>");
                    foreach (B_FixecImg bg in bfggi)
                    {
                        divstr.Append("<div >");
                        if (bg.domain == "w")
                        {
                            divstr.AppendFormat("<img src='{0}'/>", wurl + bg.url);
                        }
                        if (bg.domain == "p")
                        {
                            divstr.AppendFormat("<img src='{0}'/>", purl + bg.url);
                        }
                        divstr.Append("</div>");
                    }
                    divstr.Append("</div>");
                }
                d.d = divstr.ToString();
            }
            else
            {
                d.d = iv.badstr;
            }
            return(Json(d));
        }
Exemplo n.º 9
0
        public static string OrderAttrImg(string sid)
        {
            string              r    = "";
            StringBuilder       hstr = new StringBuilder();
            SessionUserValidate iv   = SysValidateBll.ValidateSession();

            if (iv.f)
            {
                Sys_Domain          sd   = sdb.Query(" and dtype='p'");
                string              zt   = bosb.QueryOrderStateImg(sid);
                B_Attachment        ba   = bmib.Query(" and sid='" + sid + "'");
                CB_OrderState       cos  = cbsb.Query("and sid='" + sid + "'");
                CB_OrderProduceType ct   = coptb.Query("and sid='" + sid + "'");
                B_FeedBackImg       bfi  = bfbib.Query(" and sid='" + sid + "'");
                B_DesignPlan        bdp  = bdpb.Query(" and osid='" + sid + "' and dtype='0'");
                B_DesignPlan        bdpt = bdpb.Query(" and osid='" + sid + "' and dtype='1'");
                hstr.Append("<table style='border:none; width:100%'> ");
                hstr.AppendFormat("<tr><td align='center' height='40'><strong>状态:</strong></td><td align='center'><img src='{0}'></td></tr>", zt);
                hstr.AppendFormat("<tr><td align='center'height='40'><strong>日志:</strong></td><td align='center'><img src='" + sd.url + "/Image/opeimage/makep.png' id='{0}' onclick='ShowLogs(this.id)' style='cursor:pointer'/></td></tr>", sid);
                if (ba != null)
                {
                    hstr.AppendFormat("<tr><td align='center'height='40'><strong>附件:</strong></td><td align='center'><img src='" + sd.url + "/Image/opeimage/zip.gif' id='{0}' onclick='ShowAttachment(this.id)'style='cursor:pointer'/></td></tr>", sid);
                }
                if (bdp != null)
                {
                    hstr.AppendFormat("<tr><td align='center'height='40'><strong>方案:</strong></td><td align='center'><img src='" + sd.url + "/Image/opeimage/design.gif' id='{0}' onclick='ShowDesign(this.id,0)'style='cursor:pointer'/></td></tr>", sid);
                }
                if (bdpt != null)
                {
                    hstr.AppendFormat("<tr><td align='center'height='40'><strong>二次方案:</strong></td><td align='center'><img src='" + sd.url + "/Image/opeimage/design.gif' id='{0}' onclick='ShowDesign(this.id,1)'style='cursor:pointer'/></td></tr>", sid);
                }
                if (bfi != null)
                {
                    hstr.AppendFormat("<tr><td align='center'height='40'><strong>售后:</strong></td><td align='center'><img src='" + sd.url + "/Image/opeimage/afterimg.gif' id='{0}' onclick='ShowAfterImg()'style='cursor:pointer'/></td></tr>", sid);
                }
                if (ct != null)
                {
                    if (ct.gytype == "线上")
                    {
                        hstr.AppendFormat("<tr><td align='center'height='40'><strong>生产:</strong></td><td align='center'><img src='" + sd.url + "/Image/opeimage/online.gif'  style='cursor:pointer'/></td></tr>");
                    }
                    if (ct.gytype == "线下")
                    {
                        hstr.AppendFormat("<tr><td align='center'height='40'><strong>生产:</strong></td><td align='center'><img src='" + sd.url + "/Image/opeimage/offline.gif'  style='cursor:pointer'/></td></tr>");
                    }
                }
                if (cos != null)
                {
                    if (cos.inewpp > 0)
                    {
                        hstr.AppendFormat("<tr><td align='center'height='40'><strong>新报价:</strong></td><td align='center'><img src='" + sd.url + "/Image/opeimage/nbj.png' id='{0}' style='cursor:pointer'/></td></tr>", sid);
                    }
                    if (cos.ipdraw == 1)
                    {
                        hstr.AppendFormat("<tr><td align='center'height='40'><strong>绘图中:</strong></td><td align='center'><img src='" + sd.url + "/Image/opeimage/drawing.png' id='{0}' style='cursor:pointer'/></td></tr>", sid);
                    }
                    if (cos.ipdraw == 2)
                    {
                        hstr.AppendFormat("<tr><td align='center'height='40'><strong>已绘图:</strong></td><td align='center'><img src='" + sd.url + "/Image/opeimage/drawed.png' id='{0}' onclick='ShowDrawImage(this.id)'style='cursor:pointer'/></td></tr>", sid);
                    }
                    if (cos.imeasure == 1)
                    {
                        hstr.AppendFormat("<tr><td align='center'height='40'><strong>测量中:</strong></td><td align='center'><img src='" + sd.url + "/Image/opeimage/measuring.png' id='{0}' style='cursor:pointer'/></td></tr>", sid);
                    }
                    if (cos.imeasure == 2)
                    {
                        hstr.AppendFormat("<tr><td align='center'height='40'><strong>已测量:</strong></td><td align='center'><img src='" + sd.url + "/Image/opeimage/measured.png' id='{0}' style='cursor:pointer'/></td></tr>", sid);
                    }
                }

                hstr.Append("</table>");
                r = hstr.ToString();
            }
            else
            {
                r = iv.badstr;
            }
            return(r);
        }