Пример #1
0
        public void GetMaxemno()
        {
            string message = string.Empty;

            try
            {
                pspersonBll bll  = new pspersonBll();
                string      sMax = Convert.ToString(bll.GetMaxemno() + 1);
                message = "{status:'success',msg:'" + sMax + "'}";;
            }
            catch (Exception ex)
            {
                message = "{status:'fail',msg:''}";;
            }
            Response.Output.Write(message);
        }
Пример #2
0
        public void GetAutoStaffId()
        {
            string message = string.Empty;

            try
            {
                string      emno = string.Empty;
                string      sfid = string.Empty;
                pspersonBll bll  = new pspersonBll();

                bll.GetAutoStaffId(ref emno, ref sfid);

                message = "{status:'success',emno:'" + emno + "',sfid:'" + sfid + "'}";
            }
            catch (Exception ex)
            {
                message = "{status:'failure',msg:'" + ExceptionPaser.Parse(ex.Message, ex, true) + "'}";
            }

            Response.Output.Write(message);
        }