Exemplo n.º 1
0
 private void btnBack_Click(object sender, EventArgs e)
 {
     WaitCursor.Set();
     try
     {
         BaseTaskForm baseTaskForm = new BaseTaskForm(this.billType, billID);
         baseTaskForm.index = this.Index;
         baseTaskForm.Show();
         this.Close();
     }
     catch (Exception ex)
     {
         WaitCursor.Restore();
         MessageBox.Show("读取数据失败!" + ex.Message);
     }
 }
Exemplo n.º 2
0
 private void btnBack_Click(object sender, EventArgs e)
 {
     WaitCursor.Set();
     try
     {
         BaseTaskForm baseTaskForm = new BaseTaskForm(this.billType, billID);
         baseTaskForm.index = this.Index;
         baseTaskForm.Show();
         this.Close();
     }
     catch (Exception ex)
     {
         WaitCursor.Restore();
         MessageBox.Show("��ȡ����ʧ��!" + ex.Message);
     }
 }
Exemplo n.º 3
0
 private void btnComplete_Click(object sender, EventArgs e)
 {
     try
     {
         DataSet ds         = GenerateEmptyTables();
         DataRow detailRows = ds.Tables["DETAIL"].NewRow();
         detailRow = detailTable.Select(string.Format("DetailID = {0}", detailID))[0];
         detailRows["bb_detail_id"]       = this.lbID.Text.ToString();
         detailRows["bb_operate_type"]    = detailRow["bb_operate_type"].ToString();
         detailRows["bb_pallet_move_flg"] = detailRow["bb_pallet_move_flg"].ToString();
         detailRows["bb_cargo_no"]        = detailRow["bb_cargo_no"].ToString();
         detailRows["bb_pallet_no"]       = detailRow["bb_pallet_no"].ToString();
         detailRows["bb_brand_id"]        = detailRow["bb_brand_id"].ToString();
         detailRows["bb_brand_name"]      = detailRow["bb_brand_name"].ToString();
         detailRows["bb_handle_num"]      = Convert.ToDecimal(detailRow["bb_handle_num"].ToString());
         detailRows["bb_inventory_num"]   = Convert.ToDecimal(detailRow["bb_inventory_num"].ToString());
         detailRows["bb_unit"]            = detailRow["bb_unit"].ToString();
         detailRows["bb_operator_name"]   = "PDA";
         detailRows["bb_operate_date"]    = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
         ds.Tables["DETAIL"].Rows.Add(detailRows);
         wave.confirmData(ds.Tables["DETAIL"], ReturnString);
         MessageBox.Show("确认成功!");
         BaseTaskForm baseTaskForm = new BaseTaskForm(this.billType, billID);
         if (this.Index > 0)
         {
             baseTaskForm.index = this.Index;
         }
         baseTaskForm.Show();
         this.Close();
     }
     catch (Exception ex)
     {
         WaitCursor.Restore();
         MessageBox.Show(ex.Message);
         this.Close();
     }
 }
Exemplo n.º 4
0
 private void btnComplete_Click(object sender, EventArgs e)
 {
     try
     {
         DataSet ds = GenerateEmptyTables();
         DataRow detailRows = ds.Tables["DETAIL"].NewRow();
         detailRow = detailTable.Select(string.Format("DetailID = {0}", detailID))[0];
         detailRows["bb_detail_id"] = this.lbID.Text.ToString();
         detailRows["bb_operate_type"] = detailRow["bb_operate_type"].ToString();
         detailRows["bb_pallet_move_flg"] = detailRow["bb_pallet_move_flg"].ToString();
         detailRows["bb_cargo_no"] = detailRow["bb_cargo_no"].ToString();
         detailRows["bb_pallet_no"] = detailRow["bb_pallet_no"].ToString();
         detailRows["bb_brand_id"] = detailRow["bb_brand_id"].ToString();
         detailRows["bb_brand_name"] = detailRow["bb_brand_name"].ToString();
         detailRows["bb_handle_num"] = Convert.ToDecimal(detailRow["bb_handle_num"].ToString());
         detailRows["bb_inventory_num"] = Convert.ToDecimal(detailRow["bb_inventory_num"].ToString());
         detailRows["bb_unit"] = detailRow["bb_unit"].ToString();
         detailRows["bb_operator_name"] = "PDA";
         detailRows["bb_operate_date"] = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
         ds.Tables["DETAIL"].Rows.Add(detailRows);
         wave.confirmData(ds.Tables["DETAIL"], ReturnString);
         MessageBox.Show("ȷ�ϳɹ�!");
         BaseTaskForm baseTaskForm = new BaseTaskForm(this.billType, billID);
         if (this.Index > 0)
         {
             baseTaskForm.index = this.Index;
         }
         baseTaskForm.Show();
         this.Close();
     }
     catch (Exception ex)
     {
         WaitCursor.Restore();
         MessageBox.Show(ex.Message);
         this.Close();
     }
 }