Beispiel #1
0
        public string ToAssChangeString(CMSMStruct.AssChangeStruct asstmp)
        {
            StringBuilder sb = new StringBuilder(1024);

            sb.Append(asstmp.strCardID);
            sb.Append(",");
            sb.Append(asstmp.strChangeField);
            sb.Append(",");
            sb.Append(asstmp.strChangeValue);
            sb.Append(",");
            sb.Append(asstmp.strOperDate);
            return(sb.ToString());
        }
Beispiel #2
0
        public bool UserAlterParseLine(string strValue, string strSplit, out CMSMStruct.AssChangeStruct asschange, out Exception err)
        {
            int i = 0;

            asschange = new CMSMStruct.AssChangeStruct();
            err       = null;
            try
            {
                string[] strFields = strValue.Split(strSplit.ToCharArray());
                asschange.strCardID      = strFields[i++];
                asschange.strChangeField = strFields[i++];
                asschange.strChangeValue = strFields[i++];
                asschange.strOperDate    = strFields[i++];
            }
            catch (Exception e)
            {
                err = e;
                return(false);
            }
            return(true);
        }