Example #1
0
        public String initFilds()
        {
            string result = String.Empty;

            FullName = xlsName;
            try
            {
                xlsName = FieldFunc.getFuncName(FullName);
                string[] param = FullName.Split('(');
                NameVal1 = param[1].Split(',')[0].Trim();
                Type     = Type.GetType(String.Format(
                                            "System.{0}",
                                            param[1].Split(',')[1].Split(')')[0].Trim()
                                            ));

                NameVal2 = param[2].Split(',')[0].Trim();
                Type2    = Type.GetType(String.Format(
                                            "System.{0}",
                                            param[2].Split(',')[1].Split(')')[0].Trim()
                                            ));
            }
            catch (Exception e)
            {
                result = e.Source;
            }
            return(result);
        }
Example #2
0
 public FieldSystem(DataRow row, Scan scan) : base(row, scan)
 {
     if (xlsName == Scan.ROW_ID)
     {
         isField = true;
         isRowId = true;
         Type    = Type.GetType("System.Int32");
     }
     else if ((ResName.Length >= Scan.SHEMA.Length) && (ResName.Substring(0, Scan.SHEMA.Length) == Scan.SHEMA))
     {
         isShema  = true;
         funcName = FieldFunc.getFuncName(xlsName);
     }
 }