Ejemplo n.º 1
0
    public override void InitControl(List <WACParameter> parms)
    {
        WACParameter masterKey = WACParameter.GetSelectedKey(parms);

        masterKey.ParmType = WACParameter.ParameterType.MasterKey;
        parms.Add(masterKey);
        sReq.ServiceFor       = this;
        sReq.ParmList         = parms;
        sReq.ServiceRequested = ServiceFactory.ServiceTypes.SetMasterKeyForContainer;
        ServiceFactory.Instance.ServiceRequest(sReq);
        WACPR_TaxParcelOwnerGrid.InitControl(parms);
        lblOwnerCount.Text = getCount();
    }
Ejemplo n.º 2
0
    private string getCount()
    {
        string        rowCount;
        StringBuilder sb = new StringBuilder();

        sb.Append("(");
        sReq.ServiceFor       = WACPR_TaxParcelOwnerGrid;
        sReq.ServiceRequested = ServiceFactory.ServiceTypes.ListRowCount;
        ServiceFactory.Instance.ServiceRequest(sReq);
        rowCount = WACParameter.GetParameterValue(WACPR_TaxParcelOwnerGrid.GetContents(), WACParameter.ParameterType.RowCount).ToString();
        if (!string.IsNullOrEmpty(rowCount))
        {
            sb.Append(rowCount);
        }
        else
        {
            sb.Append("?");
        }
        sb.Append(")");
        return(sb.ToString());
    }