Example #1
0
        [WebMethod(true)]//删除图片
        public static string DelAfterProductionImg(string id)
        {
            string r = "";
            SessionUserValidate iv = SysValidateBll.ValidateSession();

            if (iv.f)
            {
                if (bapib.Delete(id))
                {
                    r = "S";
                }
                else
                {
                    r = "F";
                }
            }
            else
            {
                r = iv.badstr;
            }
            return(r);
        }
Example #2
0
        public static string DelProduction(string sid, string gnum)
        {
            string r = "";
            SessionUserValidate    iv = SysValidateBll.ValidateSession();
            B_AfterGroupProduction ao = new B_AfterGroupProduction();

            if (iv.f)
            {
                if (bagpb.Delete(" and sid='" + sid + "' and gnum=" + gnum + ""))
                {
                    bitb.Delete(sid, gnum);
                    r = "S";
                }
                else
                {
                    r = "F";
                }
            }
            else
            {
                r = iv.badstr;
            }
            return(r);
        }