예제 #1
0
        public static string CustDelSettlement(string scode)
        {
            string              r   = "";
            Sys_Settlement      sd  = new Sys_Settlement();
            Sys_SettlementBll   sdb = new Sys_SettlementBll();
            SessionUserValidate iv  = SysValidateBll.ValidateSession();

            if (iv.f)
            {
                sd = sdb.Query(" and scode='" + scode + "'");
                if (sd != null)
                {
                    if (sd.sread)
                    {
                        r = "R";
                    }
                    else
                    {
                        if (sdb.Delete(scode))
                        {
                            r = "S";
                        }
                        else
                        {
                            r = "F";
                        }
                    }
                }
                else
                {
                    r = "F";
                }
            }
            else
            {
                r = iv.badstr;
            }
            return(r);
        }
예제 #2
0
        public static string DelSettlement(string scode)
        {
            string              r   = "";
            Sys_Settlement      sd  = new Sys_Settlement();
            Sys_SettlementBll   sdb = new Sys_SettlementBll();
            SessionUserValidate iv  = SysValidateBll.ValidateSession();

            if (iv.f)
            {
                if (sdb.Delete(scode))
                {
                    r = "S";
                }
                else
                {
                    r = "F";
                }
            }
            else
            {
                r = iv.badstr;
            }
            return(r);
        }