/// <summary> /// 加载事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void OutInventory_Load(object sender, EventArgs e) { data_storage.DataSource = bb.GetDataset(operation_type).Tables[0]; com_find_type.Items.Add("根据物品名查询"); com_find_type.Items.Add("根据客户名查询"); date_start_time.CustomFormat = " "; date_stop_time.CustomFormat = " "; }
/// <summary> /// 加载事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void BillManage_Load(object sender, EventArgs e) { data_storage.DataSource = bb.GetDataset("").Tables[0]; com_find_type.Items.Add("根据物品名查询"); com_find_type.Items.Add("根据客户名查询"); com_find_type.Items.Add("根据仓库名查询"); date_start_time.CustomFormat = " "; date_stop_time.CustomFormat = " "; com_type_id.DisplayMember = "Operation_type"; com_type_id.ValueMember = "Id"; com_type_id.DataSource = ob.FindAll(); com_type_id.SelectedItem = null; }