private void BindSlab() { try { WaitingFrom.ShowWait(""); dtSlab = bllTscSlabMain.Get_List_ByStove(txt_Stove.Text.Trim()).Tables[0]; gc_Slab.DataSource = dtSlab; SetGridViewRowNum.SetRowNum(gv_Slab); gv_Slab.OptionsSelection.MultiSelect = true; gv_Slab.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CheckBoxRowSelect; WaitingFrom.CloseWait(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void btn_query_byline_Click(object sender, EventArgs e) { string C_STA_ID = ""; if (this.icbo_line1.SelectedIndex >= 0) { C_STA_ID = this.icbo_line1.Properties.Items[this.icbo_line1.SelectedIndex].Value.ToString(); } string C_SPEC = this.txt_gg1.Text.Trim(); WaitingFrom.ShowWait("订单数据正在加载,请稍候..."); DataTable dt = bll_plan.GetNJSCN(C_STA_ID, C_SPEC); this.gridControl1.DataSource = dt; this.gridView1.OptionsView.ColumnAutoWidth = false; this.gridView1.OptionsSelection.MultiSelect = true; gridView1.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CheckBoxRowSelect; SetGridViewRowNum.SetRowNum(gridView1); this.gridView1.BestFitColumns(); WaitingFrom.CloseWait(); }
private void btn_fx_Click(object sender, EventArgs e) { WaitingFrom.ShowWait(""); string strlz = "";//查询连铸 if (this.icbo_lz2.SelectedIndex > 0) { strlz = this.icbo_lz2.Properties.Items[this.icbo_lz2.SelectedIndex].Value.ToString().Trim(); } DataTable dt = bll_order.KPC_DD_FX(strlz); this.gc_tmo_order_pj.DataSource = dt; gc_tmo_order_pj.MainView = gridView2; this.gridView2.OptionsView.ColumnAutoWidth = false; this.gridView2.OptionsSelection.MultiSelect = true; gridView2.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CheckBoxRowSelect; SetGridViewRowNum.SetRowNum(gridView2); this.gridView2.BestFitColumns(); WaitingFrom.CloseWait(); }
/// <summary> /// 查询线材实绩 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btn_Query_Main_Click(object sender, EventArgs e) { try { if (txt_BatchNo.Text.Trim() == "") { MessageBox.Show("请输入完整的批号,再进行查询!"); return; } WaitingFrom.ShowWait(""); DataTable dt = bll_RollMain.GetQueryBatch(txt_BatchNo.Text.Trim()).Tables[0]; gc_SJXX.DataSource = dt; gv_SJXX.BestFitColumns(); SetGridViewRowNum.SetRowNum(gv_SJXX); WaitingFrom.CloseWait(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
/// <summary> /// 钢坯实绩信息查询 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btn_Query_Click(object sender, EventArgs e) { try { if (txt_Stove.Text.Trim() == "") { MessageBox.Show("请输入完整的炉号,再进行查询!"); return; } WaitingFrom.ShowWait(""); DataTable dt = bll_slab.GetList_Stove2(txt_Stove.Text.Trim()).Tables[0]; gc_GPSJ.DataSource = dt; gv_GPSJ.BestFitColumns(); SetGridViewRowNum.SetRowNum(gv_GPSJ); WaitingFrom.CloseWait(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
/// <summary> /// 查询 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btn_Query_Click(object sender, EventArgs e) { try { WaitingFrom.ShowWait(""); DataTable dt = bll.GetList_WL_BZ(txt_Mat_Code.Text, txt_Mat_Name.Text, txt_GRD.Text, txt_spec.Text).Tables[0]; gc_Matrl.DataSource = dt; gv_Matrl.BestFitColumns(); SetGridViewRowNum.SetRowNum(gv_Matrl); gv_Matrl.OptionsSelection.MultiSelect = true; gv_Matrl.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CheckBoxRowSelect; WaitingFrom.CloseWait(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void btn_SyncRF_Click(object sender, EventArgs e) { if (dtRF != null && dtRF.Rows.Count > 0) { WaitingFrom.ShowWait(""); for (int i = 0; i < dtRF.Rows.Count; i++) { dal_Interface_FR.TbKCList("", "", "", dtRF.Rows[i]["WGDH"].ToString(), "", "", ""); bll_TRC_ROLL_WGD.UpdateUpLoadStatus(2, dtRF.Rows[i]["WGDH"].ToString()); UserLog.AddLog(RV.UI.UserInfo.menuName, this.Name, this.Text, dtRF.Rows[i]["WGDH"].ToString() + "同步条码数据,时间:" + DateTime.Now.ToLongDateString()); } WaitingFrom.CloseWait(); MessageBox.Show("同步成功"); } else { MessageBox.Show("同步失败"); } BindWgdFinished(); }
/// <summary> /// 绑定库存钢坯数据 /// </summary> public void BindSlabList() { try { WaitingFrom.ShowWait(""); gc_Slab.DataSource = null; DataTable dt = bllTscSlabMain.Get_KC_List(slabwhCode, txt_Grd.Text.Trim(), txt_Stove.Text.Trim(), txt_Spec.Text.Trim(), "", "").Tables[0]; this.gc_Slab.DataSource = dt; SetGridViewRowNum.SetRowNum(gv_Slab); WaitingFrom.CloseWait(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
/// <summary> /// 数据同步 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void simpleButton1_Click(object sender, EventArgs e) { string stype = ""; if (this.radioGroup1.SelectedIndex == 1) { stype = "NC正式库"; } else { stype = ""; } WaitingFrom.ShowWait("钢坯数据正在同步到本地库存,请稍候..."); var lst = Get_GPKNCZS(stype); for (int i = 0; i < lst.Count; i++) { bll_slab.Add(lst[i]); } WaitingFrom.CloseWait(); }
// var lstlh = lst.Where(a => a.C_STOVE == lh && a.C_BATCH_NO == pch && a.C_SLABWH_LOC_CODE == hw && a.C_ZYX1 == zyx1 && a.C_ZYX2 == zyx2 && a.C_MAT_CODE == wlid && a.C_MAT_NAME == wumc); /// <summary> /// 查询钢坯库数据 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void simpleButton3_Click(object sender, EventArgs e) { WaitingFrom.ShowWait("正在加载库存数据,请稍候..."); //NC钢坯库数据 if (this.radioGroup1.SelectedIndex == 0) { lstncslab = Get_NC_Slab_List(""); } else { lstncslab = Get_NC_Slab_List("NC正式库"); } this.modTSCSLABMAINBindingSource.DataSource = null; this.modTSCSLABMAINBindingSource.DataSource = lstncslab.OrderBy(a => a.C_STOVE); this.gridView3.OptionsView.ColumnAutoWidth = false; this.gridView3.OptionsSelection.MultiSelect = true; //gridView1.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CheckBoxRowSelect; SetGridViewRowNum.SetRowNum(gridView3); this.gridView3.BestFitColumns(); WaitingFrom.CloseWait(); }
/// <summary> /// 绑定需要倒垛的钢坯信息 /// </summary> public void BindSlabList() { try { WaitingFrom.ShowWait(""); gc_Slab.DataSource = null; BindStoreTier(); DataTable dt = bllTscSlabMain.Get_DD_KC_List(slabwhCode, txt_Grd.Text.Trim(), txt_Stove.Text.Trim(), txt_Spec.Text.Trim(), "", "").Tables[0]; gc_Slab.DataSource = dt; SetGridViewRowNum.SetRowNum(gv_Slab); WaitingFrom.CloseWait(); } catch (Exception e) { throw e; } }
/// <summary> /// 钢种生产条件主表查询 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btn_Query_Click(object sender, EventArgs e) { try { WaitingFrom.ShowWait(""); dtmain = bll_steel_pro.GetList_GZSCTJ(strPhyCode, txt_GRD.Text.Trim(), txt_Std.Text.Trim()).Tables[0]; this.gc_Main.DataSource = dtmain; gv_Main.OptionsView.ColumnAutoWidth = false; gv_Main.OptionsView.RowAutoHeight = true; gv_Main.BestFitColumns(); SetGridViewRowNum.SetRowNum(gv_Main); NewMethod6(); WaitingFrom.CloseWait(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
private void btn_SCDFPHL_Click(object sender, EventArgs e) { WaitingFrom.ShowWait(""); //DataTable dt = bll.GetListByKP("").Tables[0]; //DateTime st = dt_KSSJ.DateTime; //DateTime time = dt_KSSJ.DateTime; //foreach (DataRow item in dt.Rows) //{ // Mod_TSP_PLAN_SMS mod = bll.GetModel(item["C_ID"].ToString()); // if (mod.C_DFP_HL == "Y") // { // mod.D_DFPHL_START_TIME = Convert.ToDateTime(mod.D_P_END_TIME).AddHours(2); // mod.D_DFPHL_END_TIME = Convert.ToDateTime(mod.D_DFPHL_START_TIME).AddHours(Convert.ToDouble(mod.N_DFP_HL_TIME)); // bll.Update(mod); // } //} string result = bll.P_INI_SMS(); WaitingFrom.CloseWait(); BindInfo(); }
private void btn_query_lc_plan_Click(object sender, EventArgs e) { int?n_status = null; if (this.rbtn_sfqr.SelectedIndex != 2) { n_status = this.rbtn_sfqr.SelectedIndex; } else { n_status = null; } string c_ccm = ""; if (icbo_lz2.SelectedIndex > 0) { c_ccm = icbo_lz2.Properties.Items[icbo_lz2.SelectedIndex].Value.ToString(); } string Dtb = ""; string Dte = ""; if (dtp_form1.Text.Trim() != "") { Dtb = dtp_form1.Text.Trim(); } if (dtp_end1.Text.Trim() != "") { Dte = dtp_end1.Text.Trim(); } WaitingFrom.ShowWait(""); DataTable dt = bll_trp_plan.GetLGPlan(c_ccm, n_status, "", txt_gz2.Text.Trim(), txt_zxbz2.Text.Trim(), Dtb.ToString()).Tables[0]; this.modTRPPLANROLLBindingSource.DataSource = dt; this.gv_Lg_plan_Query.OptionsView.ColumnAutoWidth = false; this.gv_Lg_plan_Query.OptionsSelection.MultiSelect = true; gv_Lg_plan_Query.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CheckBoxRowSelect; SetGridViewRowNum.SetRowNum(gv_Lg_plan_Query); this.gv_Lg_plan_Query.BestFitColumns(); WaitingFrom.CloseWait(); }
private void BindList() { try { if (txt_cust_no.Text.Trim() == "" && txt_cust_name.Text.Trim() == "") { MessageBox.Show("请输入客户编码或客户名称再进行查询!"); return; } WaitingFrom.ShowWait(""); DataTable dt = bllCUST.GetCustomer(this.txt_cust_no.Text.Trim(), this.txt_cust_name.Text.Trim(), "").Tables[0]; gc_StdMain.DataSource = dt; gv_StdMain.BestFitColumns(); SetGridViewRowNum.SetRowNum(gv_StdMain); WaitingFrom.CloseWait(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
/// <summary> /// 查询 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btn_Query_Main_Click(object sender, EventArgs e) { try { WaitingFrom.ShowWait(""); if (image_Store.Text == "") { MessageBox.Show("请选择仓库!"); } DataTable dt = bll_roll_product.GetList_WWGP(dte_Begin1.DateTime, dte_End1.DateTime, txt_BatchNo.Text, image_Store.EditValue.ToString()).Tables[0]; gc_SJXX.DataSource = dt; gv_SJXX.BestFitColumns(); SetGridViewRowNum.SetRowNum(gv_SJXX); WaitingFrom.CloseWait(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
/// <summary> /// 加载订单计划中间表 /// </summary> private void BindItemInfo() { try { WaitingFrom.ShowWait(""); string strLineID = ""; if (this.icbo_ZX_YXF.SelectedIndex >= 0) { strLineID = icbo_ZX_YXF.Properties.Items[this.icbo_ZX_YXF.SelectedIndex].Value.ToString(); } string s_State = "1"; if (icbo_status.SelectedIndex >= 0) { s_State = icbo_status.Properties.Items[this.icbo_status.SelectedIndex].Value.ToString(); } lst = bllTrpPlanRollItemInfo.GetModelList(dt_Start.Text.Trim() + " 00:00:01", dt_End.Text.Trim() + " 23:59:59", txt_gz_yxf.Text.Trim(), txt_bz_yxf.Text.Trim(), strLineID, s_State); for (int i = 0; i < lst.Count; i++) { lst[i].N_SORT = i + 1; } this.modTRPPLANROLLITEMINFOBindingSource.DataSource = lst; this.gv_Item_Info.OptionsView.ColumnAutoWidth = false; this.gv_Item_Info.OptionsSelection.MultiSelect = true; gv_Item_Info.OptionsSelection.MultiSelect = true; gv_Item_Info.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CheckBoxRowSelect; SetGridViewRowNum.SetRowNum(gv_Item_Info); WaitingFrom.CloseWait(); } catch (Exception ex) { } }
private void BindWXF() { if (string.IsNullOrEmpty(icbo_lz.Text.ToString())) { MessageBox.Show("请选择需要查看的连铸!"); return; } WaitingFrom.ShowWait(""); DataTable dt = bllTspPlanSms.Get_Stove_JH_ITEM(icbo_lz.EditValue.ToString(), "", "0", "", ""); this.gc_WXF.DataSource = dt; gv_WXF.Columns["C_ZL_ID"].ColumnEdit = commonSub.GetGWIdByGXDescItemComboBox("ZL"); gv_WXF.Columns["C_LF_ID"].ColumnEdit = commonSub.GetGWIdByGXDescItemComboBox("LF"); gv_WXF.Columns["C_RH_ID"].ColumnEdit = commonSub.GetGWIdByGXDescItemComboBox("RH"); SetGridViewRowNum.SetRowNum(gv_WXF); WaitingFrom.CloseWait(); }
/// <summary> /// 机时产能 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btn_save_cap_Click(object sender, EventArgs e) { if (Convert.ToDecimal(this.txt_jscn.Text) <= 0) { MessageBox.Show("请输入正确的机时产能!"); return; } WaitingFrom.ShowWait("系统正对轧钢计划进行产线重新分配,请稍候..."); int[] aa = this.gridView1.GetSelectedRows(); int cou = 0; string P_SFGX = "N"; int a = this.gridView1.RowCount; if (a == 0) { MessageBox.Show("没有可维护的数据!"); return; } if (DialogResult.Yes == MessageBox.Show("是否将数据同步到机时产能基础数据?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1)) { P_SFGX = "Y"; } for (int i = 0; i < aa.Length; i++) { int selectedHandle = aa[i]; string P_LINT_ID = this.gridView1.GetRowCellValue(selectedHandle, "C_STA_ID").ToString(); string P_STL_GRD = this.gridView1.GetRowCellValue(selectedHandle, "C_STL_GRD").ToString(); string P_SPEC = this.gridView1.GetRowCellValue(selectedHandle, "C_SPEC").ToString(); // decimal P_MACH_WGT = Convert.ToDecimal(this.gridView1.GetRowCellValue(selectedHandle, "N_MACH_WGT").ToString()); decimal P_MACH_WGT = Convert.ToDecimal(this.txt_jscn.Text); int res = Convert.ToInt32(bll_plan.UpdatePlanJSCN(P_LINT_ID, P_STL_GRD, P_SPEC, P_MACH_WGT, P_SFGX)); cou = cou + res; } MessageBox.Show("机时产能数据保存成功!"); btn_query_order_Click(null, null); btn_query_byline_Click(null, null); WaitingFrom.CloseWait(); }
private void simpleButton1_Click(object sender, EventArgs e) { string d_dtf = this.dtp_from.Text; string d_dte = this.dtp_end.Text; string c_ccm_id = ""; if (icbo_lz.SelectedIndex <= 0) { c_ccm_id = ""; } else { c_ccm_id = icbo_lz.Properties.Items[icbo_lz.SelectedIndex].Value.ToString(); } int N_GROUP = 0; int[] aa = this.gv_lg_plan.GetSelectedRows(); int cou = 0; for (int i = 0; i < aa.Length; i++) { int selectedHandle = aa[i]; N_GROUP = Convert.ToInt32(this.gv_lg_plan.GetRowCellValue(selectedHandle, "N_GROUP").ToString()); } if (DialogResult.No == MessageBox.Show("是否确认重新重新生成浇次计划!", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1)) { } else { WaitingFrom.ShowWait("浇次计划正在重新生成,请稍候..."); string C_IS_BXG = this.rbtn_status.SelectedIndex.ToString(); Cls_APS_PC.Generation_Slab_PlanByGroup(d_dtf, d_dte, c_ccm_id, C_IS_BXG, N_GROUP); MessageBox.Show("浇次计划已成功生成,请在炼钢生产顺序界面进行处理!"); WaitingFrom.CloseWait(); } }
/// <summary> /// 查询 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btn_Query_Click(object sender, EventArgs e) { try { WaitingFrom.ShowWait(""); gc_StdMain.DataSource = null; DataTable dt = bllTqbStdMain.GetList_GPDC(strPhyCode, imgcbo_StdType.Text.Trim(), txt_Std.Text.Trim(), txt_Grd.Text.Trim()).Tables[0]; gc_StdMain.DataSource = dt; gv_StdMain.BestFitColumns(); SetGridViewRowNum.SetRowNum(gv_StdMain); if (dt.Rows.Count > 0) { BindSlabMatchList(dt.Rows[0]["C_ID"].ToString()); } WaitingFrom.CloseWait(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
/// <summary> /// 绑定送样信息 /// </summary> private void BindZYXX() { try { WaitingFrom.ShowWait(""); DataTable dt = bllTqcPresentSamplesName.Get_List_JSZX(txt_BatchNo_CG.Text.Trim(), dt_SY_Start.Text.Trim(), dt_SY_End.Text.Trim(), "2").Tables[0]; gc_ZYXX.DataSource = dt; gv_ZYXX.BestFitColumns(); SetGridViewRowNum.SetRowNum(gv_ZYXX); for (int i = 0; i < 14; i++) { gv_ZYXX.Columns[i].OptionsColumn.AllowEdit = false; } gv_ZYXX.Columns[0].Visible = false; gv_ZYXX.Columns[8].Visible = false; gv_ZYXX.Columns[9].Visible = false; gv_ZYXX.Columns[12].Visible = false; gv_ZYXX.Columns[13].Visible = false; //冻结有焦点的列 gv_ZYXX.Columns[1].Fixed = DevExpress.XtraGrid.Columns.FixedStyle.Left; gv_ZYXX.Columns[2].Fixed = DevExpress.XtraGrid.Columns.FixedStyle.Left; gv_ZYXX.Columns[3].Fixed = DevExpress.XtraGrid.Columns.FixedStyle.Left; gv_ZYXX.Columns[4].Fixed = DevExpress.XtraGrid.Columns.FixedStyle.Left; gv_ZYXX.OptionsSelection.MultiSelect = true; gv_ZYXX.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CheckBoxRowSelect; WaitingFrom.CloseWait(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void BindPlan() { try { WaitingFrom.ShowWait(""); gc_Plan.DataSource = null; DataTable dt = bllZgPlanLog.Get_Plan_List(icbo_Pc_Name.Text.Trim(), txt_Stl_Grd.Text.Trim(), txt_Std_Code.Text.Trim(), icbo_ZX.EditValue.ToString().Trim()).Tables[0]; gc_Plan.DataSource = dt; SetGridViewRowNum.SetRowNum(gv_Plan); BindPlanGroup(icbo_ZX.EditValue.ToString().Trim()); WaitingFrom.CloseWait(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void BindGWJSCL() { WaitingFrom.ShowWait(""); DataTable alldt = null; alldt = bll_TPB_CHANGESPEC_TIME.GetList(1, cbo_CX2.EditValue.ToString(), cbo_GHQ.EditValue.ToString(), cbo_GHH.EditValue.ToString()).Tables[0]; this.gc_ZGCXHGGSJ.DataSource = alldt; this.gv_ZGCXHGGSJ.OptionsView.ColumnAutoWidth = false; this.gv_ZGCXHGGSJ.OptionsSelection.MultiSelect = true; this.gv_ZGCXHGGSJ.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CheckBoxRowSelect; this.gv_ZGCXHGGSJ.BestFitColumns(); SetGridViewRowNum.SetRowNum(gv_ZGCXHGGSJ); //if (rbtn_isty.SelectedIndex == 0) //{ // this.btn_Stop.Enabled = true; //} //else //{ // this.btn_Stop.Enabled = false; //} WaitingFrom.CloseWait(); }
private void Query2() { WaitingFrom.ShowWait(""); DataTable alldt = null; alldt = bll_TPB_CAST_STOVE.GetList(1, txt_GZ2.Text, txt_ZXBZ2.Text, cbo_GW2.EditValue.ToString()).Tables[0]; this.gc_ZJCLS.DataSource = alldt; this.gv_ZJCLS.OptionsView.ColumnAutoWidth = false; this.gv_ZJCLS.OptionsSelection.MultiSelect = true; this.gv_ZJCLS.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CheckBoxRowSelect; colC_STA_ID.ColumnEdit = sub.GetGWIdDescItemComboBox(); this.gv_ZJCLS.BestFitColumns(); SetGridViewRowNum.SetRowNum(gv_ZJCLS); //if (rbtn_isty.SelectedIndex == 0) //{ // this.btn_Stop.Enabled = true; //} //else //{ // this.btn_Stop.Enabled = false; //} WaitingFrom.CloseWait(); }
private void BindStove() { if (string.IsNullOrEmpty(txt_Stove.Text.Trim())) { MessageBox.Show("请输入需要修改计划的炉号!"); return; } WaitingFrom.ShowWait(""); DataTable dt = bllTspPlanSms.Get_Plan_ByStove(txt_Stove.Text.Trim()); this.gc_Plan.DataSource = dt; gv_Plan.Columns["C_ZL_ID"].ColumnEdit = commonSub.GetGWIdByGXDescItemComboBox("ZL"); gv_Plan.Columns["C_LF_ID"].ColumnEdit = commonSub.GetGWIdByGXDescItemComboBox("LF"); gv_Plan.Columns["C_RH_ID"].ColumnEdit = commonSub.GetGWIdByGXDescItemComboBox("RH"); gv_Plan.Columns["C_CCM_ID"].ColumnEdit = commonSub.GetGWIdByGXDescItemComboBox("CC"); SetGridViewRowNum.SetRowNum(gv_Plan); WaitingFrom.CloseWait(); }
private void simpleButton1_Click_1(object sender, EventArgs e) { if (DialogResult.Yes == MessageBox.Show("是否确认所选中的订单完工?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1)) { #region 方法 WaitingFrom.ShowWait(""); if (lst.Count > 0) { if (lst.Where(a => a.B_check).ToList().Count > 0) { for (int i = 0; i < lst.Count; i++) { if (lst[i].B_check) { // Cls_Order_PC.UpdateOrderMatral(lst[i]); } } } } WaitingFrom.CloseWait(); #endregion } }
/// <summary> /// 绑定综合判定线材信息 /// </summary> public void BindCompreList() { try { WaitingFrom.ShowWait(""); gc_Compre.DataSource = null; DataTable dt = bllTqcCompreRoll.Get_Compre_List(txt_Batch_Min.Text.Trim(), txt_Batch_Max.Text.Trim(), txt_Stove.Text.Trim(), dt_Start.Text.Trim(), dt_End.Text.Trim(), icbo_state.EditValue.ToString(), icbo_Time.EditValue.ToString(), txt_Stl_Grd.Text.Trim(), txt_Std_Code.Text.Trim()).Tables[0]; this.gc_Compre.DataSource = dt; gv_Compre.BestFitColumns(); SetGridViewRowNum.SetRowNum(gv_Compre); WaitingFrom.CloseWait(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
/// <summary> /// 查询 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btn_query_main_Click(object sender, EventArgs e) { WaitingFrom.ShowWait(""); double?gg_min = null; //规格最小值 if (this.txt_gg_min.Text.Trim() != "") { gg_min = Convert.ToDouble(this.txt_gg_min.Text.Trim()); } double?gg_max = null; //规格最大值 if (this.txt_gg_max.Text.Trim() != "" && Convert.ToDouble(this.txt_gg_max.Text.Trim()) > 0) { gg_max = Convert.ToDouble(this.txt_gg_max.Text.Trim()); } int n_status = -1; if (this.rbtn_status.SelectedIndex == 0) { n_status = -1; } else { n_status = 0; } string strJQMin = this.dtp_form1.EditValue == null ? "" : this.dtp_form1.EditValue.ToString(); string strJQMax = this.dtp_end1.EditValue == null ? "" : this.dtp_end1.EditValue.ToString(); DataTable dtOrder = bllorder.GetImporyOrder("N", 2, n_status, this.txt_gz1.Text.Trim(), this.txt_zxbz1.Text.Trim(), gg_min, gg_max, "导入", strJQMin, strJQMax).Tables[0]; this.gc_tmo_order.DataSource = dtOrder; this.gv_tmo_order.OptionsView.ColumnAutoWidth = false; this.gv_tmo_order.OptionsSelection.MultiSelect = true; gv_tmo_order.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CheckBoxRowSelect; SetGridViewRowNum.SetRowNum(gv_tmo_order); this.gv_tmo_order.BestFitColumns(); WaitingFrom.CloseWait(); }
private void btn_zdfz_Click(object sender, EventArgs e) { if (DialogResult.No == MessageBox.Show("是否确认强行分组混浇?\r\n重新分组后浇次计划将会重新生成!", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1)) { return; } WaitingFrom.ShowWait("系统正对计划进行处理,请稍候..."); int[] aa = this.gv_Lg_plan_Query.GetSelectedRows(); int cou = 0; for (int i = 0; i < aa.Length; i++) { int selectedHandle = aa[i]; string C_ID = this.gv_Lg_plan_Query.GetRowCellValue(selectedHandle, "C_ID").ToString(); string C_STL_GRD = this.gv_Lg_plan_Query.GetRowCellValue(selectedHandle, "C_STL_GRD").ToString(); string C_STD_CODE = this.gv_Lg_plan_Query.GetRowCellValue(selectedHandle, "C_STD_CODE").ToString(); Mod_TRP_PLAN_ROLL mod_roll = bll_trp_plan.GetModel(C_ID); string C_ORDER_ID = mod_roll.C_INITIALIZE_ITEM_ID; Mod_TMO_ORDER mod_order = bll_order.GetModel(C_ORDER_ID); mod_order.N_GROUP = Convert.ToInt32(this.txt_zh.Text); bool res = bll_gztj.UpdateGZ(C_STL_GRD, C_STD_CODE, Convert.ToInt32(this.txt_zh.Text)); if (bll_order.Update(mod_order)) { mod_roll.N_GROUP = Convert.ToInt32(this.txt_zh.Text); if (bll_trp_plan.Update(mod_roll)) { cou = cou + i; } } } MessageBox.Show("计划分组成功!"); WaitingFrom.CloseWait(); btn_query_lc_plan_Click(null, null); }