|
|
@@ -341,9 +341,12 @@ namespace UAS_MES.Make
|
|
|
afterTransSNPre_checkBox.Checked = true;
|
|
|
afterTransSNPre_checkBox.Enabled = false;
|
|
|
}
|
|
|
- //记录起止序列号
|
|
|
- startNo = dr["msr_startno"].ToString().Substring(afterTransSNPre.Text.Length);
|
|
|
- endNo = dr["msr_endno"].ToString().Substring(afterTransSNPre.Text.Length);
|
|
|
+ if (dr["msr_startno"].ToString() != "" && dr["msr_endno"].ToString() != "")
|
|
|
+ {
|
|
|
+ //记录起止序列号
|
|
|
+ startNo = dr["msr_startno"].ToString().Substring(afterTransSNPre.Text.Length);
|
|
|
+ endNo = dr["msr_endno"].ToString().Substring(afterTransSNPre.Text.Length);
|
|
|
+ }
|
|
|
if (length != "" && length != null)
|
|
|
{
|
|
|
//赋值
|
|
|
@@ -423,6 +426,10 @@ namespace UAS_MES.Make
|
|
|
/// <returns></returns>
|
|
|
private bool checkStartAndEnd()
|
|
|
{
|
|
|
+ if (system=="")
|
|
|
+ {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
if (system == "decimal")
|
|
|
{
|
|
|
//十进制
|