narsil/Tanshu.Accounts.Helpers/SelectBill.cs

74 lines
2.3 KiB
C#
Raw Normal View History

2010-03-02 17:56:21 +00:00
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Linq;
using Tanshu.Accounts.Contracts;
using Tanshu.Data;
namespace Tanshu.Accounts.Helpers
{
public class SelectBill : Tanshu.Data.BaseSelector<PendingBills>
2010-03-02 17:56:21 +00:00
{
public SelectBill(GetData<PendingBills> getData, bool autoClose)
2010-03-02 17:56:21 +00:00
: base(getData, true, "List of Bills")
{
//grid.Columns["CustomerID"].Visible = false;
//grid.Columns["LedgerID"].Visible = false;
}
protected override void FilterChanged(Dictionary<string, string> filter)
{
//data = CustomerProxy.GetCustomers(filter["Universal"].Split(' ')).ToList();
//bindingSource.DataSource = data;
}
protected override void UpdateDisplay(PendingBills item)
2010-03-02 17:56:21 +00:00
{
//if (item == null)
// DisplayLabel = "";
//else
// DisplayLabel = string.Format("Chosen Customer is {0} with phone number {1}", item.Name, item.Phone);
}
protected override PendingBills HandleKeydown(object sender, ExtendedKeyEventArgs e)
2010-03-02 17:56:21 +00:00
{
e.Handled = false;
return null;
}
#region Designer Code
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
}
#endregion
#endregion
}
}