public virtual bool GetRequestRecordCount()
        {
            ICsiDataField childByName = this.FindChildByName("__requestRecordCount") as ICsiDataField;

            try
            {
                return(bool.Parse(childByName.GetValue()));
            }
            catch (Exception ex)
            {
                return(false);
            }
        }
Exemplo n.º 2
0
        public virtual bool GetRequestRecordCount()
        {
            ICsiDataField childByName = this.FindChildByName("__requestRecordCount") as ICsiDataField;

            try
            {
                return(bool.Parse(childByName.GetValue()));
            }
            catch (Exception ex)
            {
                LogHelper.Error <CsiRequestSelectionValuesEx>(ex.Message);
                return(false);
            }
        }
Exemplo n.º 3
0
 public static void SetValue(this ICsiDataField csiDataField, object value)
 {
     if (value is bool b)
     {
         csiDataField.SetValue(b?1:0);
     }
     else if (value is DateTime)
     {
         csiDataField.SetValue(((DateTime)value).ToString("O"));
     }
     else
     {
         csiDataField.SetValue(value.ToString());
     }
 }
        public virtual long GetRecordCount()
        {
            long num         = 0;
            var  childByName = this.FindChildByName("__responseData") as CsiDataField;

            if (childByName != null)
            {
                ICsiDataField childByNam = childByName.FindChildByName("__recordCount") as ICsiDataField;
                try
                {
                    num = long.Parse(childByNam.GetValue());
                }
                catch (Exception ex)
                {
                }
            }
            return(num);
        }