| | |
| | | //新增工艺路线表 |
| | | sql = @"insert into TFlw_Rout(code,name,description,enable,lm_user,lm_date) values(@code,@name,@description,@enable,@lm_user,@lm_date)"; |
| | | list.Add(new { str = sql, parm = new { code = json.code, name = json.name, description = json.description, enable = json.enable, lm_user = username, lm_date = DateTime.Now.ToString() } }); |
| | | string is_firststep = "N"; //是否首道工序 |
| | | string is_laststep = "N"; //是否末道工序 |
| | | for (int i = 0; i < json.Data.Rows.Count; i++) |
| | | { |
| | | string is_firststep = "N"; //是否首道工序 |
| | | string is_laststep = "N"; //是否末道工序 |
| | | if (json.Data.Rows[i]["SEQ"].ToString() == "1") //是否首道工序 |
| | | { |
| | | is_firststep = "Y"; |
| | | } |
| | | if (Convert.ToInt32(json.Data.Rows[i]["SEQ"].ToString()) == json.Data.Rows.Count) //是否末道工序 |
| | | else if (Convert.ToInt32(json.Data.Rows[i]["SEQ"].ToString()) == json.Data.Rows.Count) //是否末道工序 |
| | | { |
| | | is_laststep = "Y"; |
| | | } |