コード例 #1
0
 public string getFieldValue(InsertContext context)
 {
     if (context.numRow > Constants.NUM_CODES)
     {
         return("0");
     }
     return(Constants.JOULEN_FIELD_VALUES[context.numRow].ToString());
 }
コード例 #2
0
 public string getFieldValue(InsertContext context)
 {
     if (context.numRow > Constants.NUM_CODES)
     {
         return("A");
     }
     return(Constants.JOUTYP_FIELD_VALUES[context.numRow]);
 }
コード例 #3
0
 public string getFieldValue(InsertContext context)
 {
     if (context.numRow <= Constants.NUM_CODES)
     {
         return(values[context.numRow].ToString());
     }
     else
     {
         return("10");
     }
 }
コード例 #4
0
 public String getFieldValue(InsertContext context)
 {
     if (context.numRow == 0)
     {
         return("0");
     }
     if (context.numRow > 0 && context.numRow < 22)
     {
         return("1");
     }
     return("2");
 }
コード例 #5
0
 public string getFieldValue(InsertContext context)
 {
     if (context.numRow == 0)
     {
         return(getJoudesFirstValue(context.operation));
     }
     if (context.val == null || context.val.Equals(""))
     {
         return(getFilledValue(context));
     }
     return(context.val);
 }
コード例 #6
0
        private string getFilledValue(InsertContext context)
        {
            string res = "";

            if (Constants.JOUTYP_FIELD_VALUES[context.numRow].Equals("Z"))
            {
                for (int i = 0; i < Constants.JOULEN_FIELD_VALUES[context.numRow]; i++)
                {
                    res = res + "0";
                }
            }
            return(res);
        }
コード例 #7
0
        public string getFieldValue(InsertContext context)
        {
            string res = "";

            if (context.numRow < 22)
            {
                res = "0";
            }
            else
            {
                int temp = context.numRow - 21;
                res = temp.ToString();
            }
            return(res);
        }
コード例 #8
0
 public string getFieldSQLValue(InsertContext context)
 {
     return("'" + getFieldValue(context) + "'");
 }
コード例 #9
0
 public string getFieldSQLValue(InsertContext context)
 {
     return(getFieldValue(context));
 }
コード例 #10
0
 public string getFieldSQLValue(InsertContext context)
 {
     return("'" + getFieldValue(context).Replace("'", "''") + "'");
 }
コード例 #11
0
 public string getFieldValue(InsertContext context)
 {
     return(context.schedaDoc.systemId);
 }