Exemplo n.º 1
0
        public bool BusiLogParseLine(string strValue, string strSplit, out CMSMStruct.BusiLogStruct blogs, out Exception err)
        {
            int i = 0;

            blogs = new CMSMStruct.BusiLogStruct();
            err   = null;
            try
            {
                string[] strFields = strValue.Split(strSplit.ToCharArray());
                blogs.strSerial   = strFields[i++];
                blogs.strAssID    = strFields[i++];
                blogs.strCardID   = strFields[i++];
                blogs.strOperType = strFields[i++];
                blogs.strOperName = strFields[i++];
                blogs.strOperDate = strFields[i++];
                blogs.strComments = strFields[i++];
                blogs.strDeptID   = strFields[i++];
            }
            catch (Exception e)
            {
                err = e;
                return(false);
            }
            return(true);
        }
Exemplo n.º 2
0
        public string ToBusiLogString(CMSMStruct.BusiLogStruct asstmp)
        {
            /*
             * iSerial--DU001
             * iAssID--DU002
             * vcCardID--DU003
             * vcOperType--DU004
             * vcOperName--DU005
             * dtOperDate--DU006
             * vcComments--DU007
             * vcDeptID--DU008
             * DU018--数据类型:1--会员资料;2--消费明细;3--小票数据;4--积分日志;5--充值日志;6--营业日志
             */
            StringBuilder sb = new StringBuilder(1024);

            sb.Append(asstmp.strSerial);
            sb.Append(",");
            sb.Append(asstmp.strAssID);
            sb.Append(",");
            sb.Append(asstmp.strCardID);
            sb.Append(",");
            sb.Append(asstmp.strOperType);
            sb.Append(",");
            sb.Append(asstmp.strOperName);
            sb.Append(",");
            sb.Append(asstmp.strOperDate);
            sb.Append(",");
            sb.Append(asstmp.strComments);
            sb.Append(",");
            sb.Append(asstmp.strDeptID);
//			sb.Append(",null,null,null,null,null,null,null,null,null,6");
            return(sb.ToString());
        }