Exemplo n.º 1
0
    private void DataBindInvoiceType()
    {
        InvoiceType            invoiceType  = new InvoiceType();
        List <InvoiceTypeInfo> invoiceType2 = invoiceType.GetInvoiceType();

        this.dropInvoiceType.DataSource = invoiceType2;
        this.dropInvoiceType.DataBind();
        DropDownlistUtil.AddHintItem(this.dropInvoiceType, "发票类型");
    }
Exemplo n.º 2
0
    private string getInvoiceType(string key)
    {
        InvoiceType            invoiceType     = new InvoiceType();
        List <InvoiceTypeInfo> invoiceType2    = invoiceType.GetInvoiceType();
        InvoiceTypeInfo        invoiceTypeInfo = (
            from data in invoiceType2
            select data).FirstOrDefault((InvoiceTypeInfo data) => data.NoteID.Equals(key));

        if (invoiceTypeInfo != null)
        {
            return(invoiceTypeInfo.CodeName);
        }
        return(string.Empty);
    }