Esempio n. 1
0
    protected DataSet getSearchData()
    {
        //Get image data
        SearchDS searchDS = new SearchDS();

        SearchDS.SearchTableRow searchRow = searchDS.SearchTable.NewSearchTableRow();
        searchRow.ScopeName     = this.cboDocClass.SelectedValue;
        searchRow.DocumentClass = this.cboDocClass.SelectedValue;
        searchRow.PropertyName  = this.cboProp1.SelectedValue;
        searchRow.PropertyValue = this.txtSearch1.Text.Trim();
        if (this.txtSearch2.Text.Trim().Length > 0)
        {
            searchRow.Operand1       = this.cboOperand1.SelectedValue;
            searchRow.PropertyName1  = this.cboProp2.SelectedValue;
            searchRow.PropertyValue1 = this.txtSearch2.Text.Trim();
        }
        if (this.txtSearch3.Text.Trim().Length > 0)
        {
            searchRow.Operand2       = this.cboOperand2.SelectedValue;
            searchRow.PropertyName2  = this.cboProp3.SelectedValue;
            searchRow.PropertyValue2 = this.txtSearch3.Text.Trim();
        }
        if (this.txtSearch4.Text.Trim().Length > 0)
        {
            searchRow.Operand3       = this.cboOperand3.SelectedValue;
            searchRow.PropertyName3  = this.cboProp4.SelectedValue;
            searchRow.PropertyValue3 = this.txtSearch4.Text.Trim();
        }
        searchDS.SearchTable.AddSearchTableRow(searchRow);
        Argix.Freight.ImagingService isvc = new Argix.Freight.ImagingService();
        return(isvc.SearchSharePointImageStore(searchDS));
    }
Esempio n. 2
0
    //Members

    //Interface
    protected void Page_Load(object sender, EventArgs e)
    {
        //Page load event handler
        Argix.Freight.ImagingService svc = new Argix.Freight.ImagingService();
        try {
            this.txtSearchInfo.Text = svc.GetPortalSearchInfo();
        }
        catch (ApplicationException ex) { this.txtSearchInfo.Text = ex.ToString(); }
        try {
            this.txtMetaData.Text = svc.GetSearchMetadata();
        }
        catch (ApplicationException ex) { this.txtMetaData.Text = ex.ToString(); }
    }