public override void Form_Ref() { int ForCnt; int ChkVal; firstFL = ""; if (txt_new_slab_no.Text.Trim().Length < 8) { GeneralCommon.Gp_MsgBoxDisplay("确认Heat_no 不够8位", "I", ""); return; } if (p_Ref(1, 0, true, true)) { //firstFL = "Y"; comm_slab.Enabled = false; } CHEMISTRY_DISP(); if (p_Ref(1, 1, true, true)) { firstFL = "Y"; comm_slab.Enabled = false; } ChkVal = 0; for (ForCnt = 1; ForCnt <= ss1.ActiveSheet.RowCount; ForCnt++) { if (ss1.ActiveSheet.Cells[ForCnt - 1, 7].Value == "使用完") { ChkVal = ChkVal + 1; } } if (ChkVal > 0) { SpreadCommon.Gp_Sp_BlockLock(ss1, 0, ss1.ActiveSheet.ColumnCount - 1, 0, ss1.ActiveSheet.RowCount - 1, true); } if (ss1.ActiveSheet.RowCount > 0) { txt_slabcnt.NumValue = ss1.ActiveSheet.RowCount; } }
public override void Form_Pro() { int ForCnt; int ChkVal; int i; string NEWSLABNO; if (opt_BuyCo1.Checked || opt_BuyCo2.Checked) { NewKey_Creation(); bySlabNo = "00"; } for (i = 1; i <= txt_slabcnt.NumValue; i++) { if (opt_BuyCo1.Checked || opt_BuyCo2.Checked) { if (i < 10) { bySlabNo = "0" + Convert.ToString((bySlabNo + 1)); } else { bySlabNo = bySlabNo + 1; } NEWSLABNO = SALENO + bySlabNo; } } if (ss1.ActiveSheet.RowCount <= 0) { GeneralCommon.Gp_MsgBoxDisplay("请确认子板坯号....!", "I", ""); return; } if (txt_car_no.Text.Length == 0) { GeneralCommon.Gp_MsgBoxDisplay("请输入车辆号..!", "I", ""); txt_car_no.Focus(); return; } if (txt_act_stlgrd.Text.Trim().Length < 10) { GeneralCommon.Gp_MsgBoxDisplay("请确认钢种代吗....!", "I", ""); return; } if (txt_c.NumValue == 0) { GeneralCommon.Gp_MsgBoxDisplay("请确认成分(C)....!", "I", ""); return; } if (txt_mn.NumValue == 0) { GeneralCommon.Gp_MsgBoxDisplay("请确认成分(MN)....!", "I", ""); return; } if (txt_p.NumValue == 0) { GeneralCommon.Gp_MsgBoxDisplay("请确认成分(P)....!", "I", ""); return; } if (txt_s.NumValue == 0) { GeneralCommon.Gp_MsgBoxDisplay("请确认成分(S)....!", "I", ""); return; } if (txt_si.NumValue == 0) { GeneralCommon.Gp_MsgBoxDisplay("请确认成分(SI)....!", "I", ""); return; } p_pro(1, 1, true, true); ChkVal = 0; for (ForCnt = 1; ForCnt <= ss1.ActiveSheet.RowCount; ForCnt++) { if (ss1.ActiveSheet.Cells[ForCnt - 1, 7].Value == "使用完") { ChkVal = ChkVal + 1; } } if (ChkVal > 0) { SpreadCommon.Gp_Sp_BlockLock(ss1, 0, ss1.ActiveSheet.ColumnCount - 1, 0, ss1.ActiveSheet.RowCount - 1, true); } }