Exemple #1
0
 public Allocation()
 {
     InitializeComponent();
     InitAllocationTable();
     AllocationNum.Content = infnum.InfTotalSet("ArmsAllo");
     AllocationTable.DataTableSelect(AllocationStatus(0), "更新");
     InitRightBm();
 }
Exemple #2
0
        public void InitRightBm()
        {
            MenuItem AllocationMenu = AllocationTable.AddMenuItem("更多信息");
            MenuItem DeletRowMenu1  = AllocationTable.AddMenuItem("删除选中的行");

            AllocationMenu.Click += AllocationEventContent;
            DeletRowMenu1.Click  += DeletRows1;
            AllocationTable.dgMenu.Items.Add(AllocationMenu);
            AllocationTable.dgMenu.Items.Add(DeletRowMenu1);
        }
Exemple #3
0
 private void InitAllocationTable()
 {
     AllocationTable.InitTableHeightWidth(420, 898);
     AllocationTable.SetCanUserAddRows(false);
     AllocationTable.AddColumns("Id", "调拨单号", 110);
     AllocationTable.AddColumns("Person", "提货人", 110);
     AllocationTable.AddColumns("InDep", "调入单位", 110);
     AllocationTable.AddColumns("ADate", "批准日期", 80);
     AllocationTable.AddColumns("ZbId", "调出装备编号", 110);
     AllocationTable.AddColumns("AType", "调拨类型", 80);
     AllocationTable.AddColumns("Reason", "备注", 280);
 }
Exemple #4
0
 public void AllocationEventContent(object sender, RoutedEventArgs e)
 {
     Allomof = new MoreInf();
     string[] Table_Str = { "Id", "RyId", "ZbId", "ANum", "Zbprice", "OutDep", "InDep", "AType", "Person", "UsefulDate", "Ryname1", "Ryname", "ADate", "Memo", "Status" };
     if (AllocationTable.dataGrid.SelectedIndex != -1)
     {
         Allomof.SetValues(AllocationTable.Getdt(), AllocationTable.dataGrid.SelectedIndex, AllocationTable.Rows, Table_Str, Str, 15);
         Allomof.Show();
     }
     else
     {
         MessageBox.Show("当前未选中任何行!");
     }
 }
Exemple #5
0
 private void Status_DropDownClosed(object sender, EventArgs e)
 {
     AllocationTable.DataTableSelect(AllocationStatus(Status.SelectedIndex), "更新");
 }
Exemple #6
0
 private void AllocationExport_Click(object sender, RoutedEventArgs e)
 {
     AllocationTable.ExportExcel("select * from ArmsAllo", Str, "调拨信息表格.xlsx");
 }