Exemplo n.º 1
0
 public void SetSelectedKeyValue(object _value)
 {
     if (SelectedKey == null)
     {
         SelectedKey = new WACParameter();
     }
     SelectedKey.ParmValue = _value;
     SelectedKey.ParmType  = WACParameter.ParameterType.SelectedKey;
     SelectedKey.ParmName  = PrimaryKey.ParmName;
 }
Exemplo n.º 2
0
 public MasterDetailDataObject(string _master, string _primary)
 {
     MasterKey           = new WACParameter();
     MasterKey.ParmName  = _master;
     MasterKey.ParmType  = WACParameter.ParameterType.MasterKey;
     PrimaryKey          = new WACParameter();
     PrimaryKey.ParmName = _primary;
     PrimaryKey.ParmType = WACParameter.ParameterType.PrimaryKey;
     DataKeyNames        = new string[] { _primary };
 }
Exemplo n.º 3
0
 public void SetPrimaryKeyValue(string _keyName, object _value)
 {
     // sets primary key
     if (PrimaryKey == null)
     {
         PrimaryKey = new WACParameter(_keyName, _value, WACParameter.ParameterType.PrimaryKey);
     }
     else
     {
         PrimaryKey.ParmValue = _value;
     }
 }
Exemplo n.º 4
0
 public void SetSelectedKeyValue(string _keyName, object _value)
 {
     if (SelectedKey == null)
     {
         SelectedKey = new WACParameter(_keyName, _value, WACParameter.ParameterType.SelectedKey);
     }
     else
     {
         SelectedKey.ParmValue = _value;
         SelectedKey.ParmType  = WACParameter.ParameterType.SelectedKey;
         SelectedKey.ParmName  = PrimaryKey.ParmName;
     }
 }
Exemplo n.º 5
0
        public IList GetSingleItemList(List <WACParameter> parms, ItemGetterDelegate _getItem)
        {
            WACParameter wp = WACParameter.GetSelectedKey(parms);

            if (FList == null || FList.Count < 1)
            {
                FList = _getNewSingleItemList(parms, _getItem);
            }
            else if (!this.SelectedKey.Equals(wp))
            {
                FList = _getItem(parms, VList);
            }
            this.SelectedKey = wp;
            return(FList);
        }