Esempio n. 1
0
    public ReturnData autoCode(string xmlpara)
    {
        ReturnData rr = new ReturnData();

        try
        {
            BLL.BLLBase bll = new BLL.BLLBase();

            DataTable dt      = Util.JsonHelper.Json2Dtb(xmlpara);
            string    PreName = dt.Rows[0]["PreName"].ToString();
            string    dtTime  = dt.Rows[0]["dtTime"].ToString();
            string    Filter  = dt.Rows[0]["Filter"].ToString();

            string strCode = bll.GetAutoCode(PreName, DateTime.Parse(dtTime), Filter);
            rr.data = strCode;
            rr.type = "" + strCode.GetType();
        }
        catch (Exception ex)
        {
        }

        return(rr);
    }
Esempio n. 2
0
    public ReturnData autoCode(string xmlpara)
    {
        ReturnData rr = new ReturnData();
        try
        {
            BLL.BLLBase bll = new BLL.BLLBase();

            DataTable dt = Util.JsonHelper.Json2Dtb(xmlpara);
            string PreName = dt.Rows[0]["PreName"].ToString();
            string dtTime = dt.Rows[0]["dtTime"].ToString();
            string Filter = dt.Rows[0]["Filter"].ToString();

            string strCode = bll.GetAutoCode(PreName, DateTime.Parse(dtTime), Filter);
            rr.data = strCode;
            rr.type = "" + strCode.GetType();
        }
        catch (Exception ex)
        {

        }

        return rr;
    }