Exemplo n.º 1
0
 public void bind(GetHandlerEx source)
 {
     Id        = source("Id").value <long>(0);
     Code      = source("Code").value("");
     Name      = source("Name").value("");
     Condition = source("Condition").value("");
 }
Exemplo n.º 2
0
 public void bind(GetHandlerEx s)
 {
     UserID   = s("UserID").value(0L);
     Nickname = s("Nickname").value("");
     Sex      = s("Sex").value(0);
     Icon     = s("Icon").value("");
     City     = s("City").value("");
 }
Exemplo n.º 3
0
 public override void bind(GetHandlerEx source)
 {
     ID           = source("ID").value <string>(Guid.NewGuid().ToString());
     UnitName     = source("UnitName").value <string>(Guid.NewGuid().ToString());
     UnitType     = source("UnitType").value <string>(Guid.NewGuid().ToString());
     UnitBankUser = source("UnitBankUser").value <string>(Guid.NewGuid().ToString());
     UnitBankName = source("UnitBankName").value <string>(Guid.NewGuid().ToString());
     UnitBankNo   = source("UnitBankNo").value <string>(Guid.NewGuid().ToString());
     IsUserAdded  = source("IsUserAdded").value <int>(-1);
 }
Exemplo n.º 4
0
 public void bind(GetHandlerEx source)
 {
     Id          = source("Id").value <long>(0);
     ActionId    = source("ActionId").value <long>(0);
     MotorIndex  = source("MotorIndex").value <long>(0);
     MotorType   = source("MotorType").value <long>(0);
     Value       = source("Value").value <long>(0);
     BeforeSleep = source("BeforeSleep").value <long>(0);
     AfterSleep  = source("AfterSleep").value <long>(0);
     Tag         = source("Tag").value("");
 }
Exemplo n.º 5
0
 /// <summary>
 /// 主要用于将查询到的数据设置到对象中
 /// </summary>
 /// <param name="source"></param>
 public override void bind(GetHandlerEx source)
 {
     //1.source:数据源
     //
     user_id = source("user_id").value <long>(0);
     role    = source("role").value <short>(0);
     mobile  = source("mobile").value("");
     udid    = source("udid").value("");
     city_id = source("city_id").value <int>(0);
     name    = source("name").value("");
     icon    = source("icon").value("");
 }
Exemplo n.º 6
0
 public void bind(GetHandlerEx s)
 {
     //1.source:数据源
     //
     user_id = s("user_id").value<long>(0);
     role    = s("role").value<short>(0);
     mobile  = s("mobile").value("");
     udid    = s("udid").value("");
     city_id = s("city_id").value<int>(0);
     name    = s("name").value("");
     icon    = s("icon").value("");
 }
Exemplo n.º 7
0
 public void bind(GetHandlerEx s)
 {
     Name = s("Name").value("");
     Type = s("Type").value("");
     object temp = s("IsKey").getValue();
     if (temp is bool)
         IsKey = (bool)temp;
     else if (temp is long)
         IsKey = (long)temp>0;
     else if (temp is int)
         IsKey = (int)temp > 0;
     Note = s("Note").value("");
     Default = s("Default").value("");
 }
Exemplo n.º 8
0
        public void bind(GetHandlerEx s)
        {
            Name = s("Name").value("");
            Type = s("Type").value("");
            object temp = s("IsKey").getValue();

            if (temp is bool)
            {
                IsKey = (bool)temp;
            }
            else if (temp is long)
            {
                IsKey = (long)temp > 0;
            }
            else if (temp is int)
            {
                IsKey = (int)temp > 0;
            }
            Note    = s("Note").value("");
            Default = s("Default").value("");
        }
Exemplo n.º 9
0
 /// <summary>
 /// 数据绑定
 /// </summary>
 /// <param name="source"></param>
 public abstract void bind(GetHandlerEx source);
 public override void bind(GetHandlerEx source)
 {
     ID        = source("ID").value <string>(Guid.NewGuid().ToString());
     ProjectID = source("ProjectID").value <string>(string.Empty);
     UnitID    = source("UnitID").value <string>(string.Empty);
 }
Exemplo n.º 11
0
 public void bind(GetHandlerEx source)
 {
     Id     = source("Id").value <long>(0);
     Ask    = source("Ask").value("");
     Answer = source("Answer").value("");
 }
Exemplo n.º 12
0
 public void bind(GetHandlerEx s)
 {
     Name = s("name").value("");
     ID   = s("id").value("");
 }
Exemplo n.º 13
0
 public void bind(GetHandlerEx s)
 {
     Name = s("name").value("");
     ID   = s("id").value("");
 }