| | |
| | | return objJsonResult; |
| | | } |
| | | |
| | | string hnumber = ""; |
| | | if (tb2.Rows.Count > 0) |
| | | { |
| | | hnumber = DBUtility.ClsPub.isStrNull(tb2.Rows[0]["产å代ç "].ToString()); |
| | | } |
| | | |
| | | for (int i = 0; i <= tb2.Rows.Count - 1; i++) |
| | | { |
| | | string sHNumber = ""; |
| | | if (DBUtility.ClsPub.isStrNull(tb2.Rows[i]["产å代ç "].ToString()) != "") |
| | | { |
| | | // |
| | | sHNumber = DBUtility.ClsPub.isStrNull(tb2.Rows[i]["产å代ç "].ToString()); |
| | | //å®¡æ ¸ä»£ç æ¯å¦åç |
| | | if (!DBUtility.ClsPub.AllowNumber(sHNumber)) |
| | |
| | | return objJsonResult; |
| | | } |
| | | |
| | | if (hnumber == DBUtility.ClsPub.isStrNull(tb2.Rows[i]["产å代ç "].ToString())) |
| | | //å¾å°ç©æå
ç |
| | | if (!oMaterHlp.GetInfoByNumber(sHNumber)) |
| | | { |
| | | //å¾å°ç©æå
ç |
| | | if (!oMaterHlp.GetInfoByNumber(sHNumber)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "第" + (i+1).ToString() + "è¡," + sHNumber + "æ²¡ææ¾å°å¯¹åºçç©æï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | hnumber = DBUtility.ClsPub.isStrNull(tb2.Rows[i]["产å代ç "].ToString()); |
| | | sHNumber = DBUtility.ClsPub.isStrNull(tb2.Rows[i]["产å代ç "].ToString()); |
| | | |
| | | //å®¡æ ¸ä»£ç æ¯å¦åç |
| | | if (!DBUtility.ClsPub.AllowNumber(sHNumber)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "ç©æä»£ç ä¸ä¸è½åºç°è¿ç»â.âå¹¶ä¸é¦ä½æ«ä½ä¸è½ä¸ºâ.âï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | //å¾å°ç©æå
ç |
| | | if (!oMaterHlp.GetInfoByNumber(sHNumber)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "第" + (i + 1).ToString() + "è¡," + sHNumber + "æ²¡ææ¾å°å¯¹åºçç©æï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "第" + (i + 1).ToString() + "è¡," + sHNumber + "æ²¡ææ¾å°å¯¹åºçç©æï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | else |