| | |
| | | } |
| | | else if (sCapName == "æ·»åº·ç§æ") |
| | | { |
| | | list.Add("å¯ä¸æ¡ç "); |
| | | list.Add("æ¹æ¬¡æ¡ç "); |
| | | } |
| | | else |
| | |
| | | tabname = "h_v_IF_SellOutBillList_Source"; |
| | | count = new SQLHelper.ClsCN().RunProcReturn("select * from h_v_IF_SellOutBillList_Source " + sWhere + " order by åæ®å· desc,hsubid", tabname).Tables[0].Rows.Count; |
| | | sql = string.Format(@"select top " + pageSize + " * from(select row_number() over (order by åæ®å· desc,hsubid) as HRowNumber,* from h_v_IF_SellOutBillList_Source " + sWhere + ") as A where HRowNumber >" + pageSize + " *(" + pageNum + "-1)"); |
| | | break; |
| | | case "颿åºåºå": |
| | | tabname = "h_v_IF_MateOutBillList_Source"; |
| | | count = new SQLHelper.ClsCN().RunProcReturn("select * from h_v_IF_MateOutBillList_Source " + sWhere + " order by åæ®å· desc,hsubid", tabname).Tables[0].Rows.Count; |
| | | sql = string.Format(@"select top " + pageSize + " * from(select row_number() over (order by åæ®å· desc,hsubid) as HRowNumber,* from h_v_IF_MateOutBillList_Source " + sWhere + ") as A where HRowNumber >" + pageSize + " *(" + pageNum + "-1)"); |
| | | break; |
| | | default: |
| | | break; |
| | |
| | | //åå
¥ä¿¡æ¯ |
| | | ListRows.Add(HSourceOrderList1(ds.Tables[0], ordrlist, HBarCodeType, HSourceBillType)); |
| | | break; |
| | | case "1204": //颿åºåºå |
| | | //å¾å°ä¿¡æ¯ |
| | | ds = oCN.RunProcReturn("exec h_p_Gy_BarCodeBill_MateOutBillList " + oSelectRow.BillMainID.ToString() + "," + oSelectRow.BillSubID.ToString(), "h_p_Gy_BarCodeBill_MateOutBillList"); |
| | | //åå
¥ä¿¡æ¯ |
| | | ListRows.Add(HSourceOrderList1(ds.Tables[0], ordrlist, HBarCodeType, HSourceBillType)); |
| | | break; |
| | | default: |
| | | break; |
| | | } |
| | |
| | | ordrlist.HCusNumber = dt.Rows[i]["客æ·ä»£ç "].ToString(); |
| | | ordrlist.HCusName= dt.Rows[i]["客æ·"].ToString(); |
| | | } |
| | | if (HSourceBillType == "å
¶ä»å
¥åºå") |
| | | if (HSourceBillType == "å
¶ä»å
¥åºå" || HSourceBillType == "颿åºåºå") |
| | | { |
| | | ordrlist.HWhID = dt.Rows[i]["HWhID"].ToString(); |
| | | ordrlist.HWhNumber = dt.Rows[i]["ä»åºä»£ç "].ToString(); |
| | |
| | | if (oDs == null && oDs.Tables[0].Rows.Count == 0) |
| | | { |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.Message="çææ¹æ¬¡å¤±è´¥ï¼"; |
| | | objJsonResult.Message= "[0000-2-053]çææ¹æ¬¡å¤±è´¥ï¼"; |
| | | return objJsonResult; |
| | | } |
| | | else if (DBUtility.ClsPub.isStrNull(oDs.Tables[0].Rows[0][0]) == "1") |
| | | { |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.Message = "çææ¹æ¬¡æåï¼"; |
| | | objJsonResult.Message = "[0000-2-054]çææ¹æ¬¡æåï¼"; |
| | | objJsonResult.data = DBUtility.ClsPub.isStrNull(oDs.Tables[0].Rows[0]["HBatchNo"]); |
| | | HBatchNo = DBUtility.ClsPub.isStrNull(oDs.Tables[0].Rows[0]["HBatchNo"]); |
| | | b = true; |
| | |
| | | if (b == false) |
| | | { |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.Message="没æéè¦çææ¹æ¬¡çæç»è¡ï¼"; |
| | | objJsonResult.Message= "[3899-2-003]没æéè¦çææ¹æ¬¡çæç»è¡ï¼"; |
| | | return objJsonResult; |
| | | } |
| | | else //å®å
¨å°é |
| | |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "éæ©ç»ç»æé误!"; |
| | | objJsonResult.Message = "[0000-2-055]éæ©ç»ç»æé误!"; |
| | | return objJsonResult; |
| | | } |
| | | if (!Sub_AllowSave(msg2, HSelectBarCodeType))//忮宿´æ§å¤æ |
| | |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ¡ç çæå¤±è´¥!"+e.Message; |
| | | objJsonResult.Message = "[3899-2-006]æ¡ç çæå¤±è´¥!" + e.Message; |
| | | return objJsonResult; |
| | | } |
| | | return objJsonResult; |
| | |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ¡ç çæå®æ´æ§å¤æé误"; |
| | | objJsonResult.Message = "[3899-2-007]æ¡ç çæå®æ´æ§å¤æé误"; |
| | | return false; |
| | | } |
| | | else if (DBUtility.ClsPub.isStrNull(oDsCheck.Tables[0].Rows[0][0]) == "1") |
| | |
| | | + ", " + HCusID.ToString() + ",'" + HCusType + "','" + HEndDate.ToShortDateString() + "','" + HWorkLineName + "','" + sDate + "'" |
| | | + ", " + HOrgID.ToString() + "," + HOrgID.ToString() + ",'" + HSeOrderBillNo + "'," + HInterID.ToString() + "," + HEntryID.ToString() + "" |
| | | + ", " + DBUtility.ClsPub.BoolToString(HGiveAwayFlag) |
| | | + ",'" + HMaterName + "','" + HMaterModel + "','" + HPinfan + "'," + HAuxPropID.ToString() + ",'" + HMTONo + "','" + HInnerBillNo + "','" + HCoilNO2 + "','" + HFurnaceNO2 + "','" + HFactory2 + "'," + HAuxQty2 + ",'" + HheatNO2 + "','" + HProduceDate + "','" + HExpiryDate + "'," + HEmpID2.ToString() + ",'" + HCusModel2 + "','" + HCusMaterName2 + "','" + HCheckEmpName2 + "'" + ")"); |
| | | + ",'" + HMaterName + "','" + HMaterModel + "','" + HPinfan + "'," + HAuxPropID.ToString() + ",'" + HMTONo + "','" + HInnerBillNo + "'" |
| | | + ",'" + HCoilNO2 + "','" + HFurnaceNO2 + "','" + HFactory2 + "'," + HAuxQty2 + ",'" + HheatNO2 + "','" + HProduceDate + "','" + HExpiryDate + "'," + HEmpID2.ToString() + ",'" + HCusModel2 + "','" + HCusMaterName2 + "','" + HCheckEmpName2 + "'" + ")"); |
| | | |
| | | |
| | | //HNumber = ClsPub.isStrNull(grdSub.Rows[i].Cells[HMaterID2Col].Value); |
| | |
| | | { |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "è·åèµæºç»å®æ°æ®æåï¼"; |
| | | objJsonResult.Message = "[0000-1-037]è·åèµæºç»å®æ°æ®æåï¼"; |
| | | objJsonResult.data = JsonConvert.DeserializeObject<DataTable>(JsonConvert.SerializeObject(ds.Tables[0], new IsoDateTimeConverter { DateTimeFormat = "yyyy-MM-dd HH:mm:ss" })); //åºååDataSetä¸çæ¶é´æ ¼å¼ï¼ç¶ååååºåå忥 |
| | | objJsonResult.list = listobj; |
| | | return objJsonResult; |
| | |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "没æè¿åä»»ä½ç»æ,æ¡ç ä¸åå¨ï¼"; |
| | | objJsonResult.Message = "[0000-2-020]没æè¿åä»»ä½ç»æ,æ¡ç ä¸åå¨ï¼"; |
| | | objJsonResult.data = null; |
| | | objJsonResult.list = listobj; |
| | | return objJsonResult; |
| | |
| | | oCN.RollBack(); |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ¡ç çæå¤±è´¥ï¼" + e.Message; |
| | | objJsonResult.Message = "[3899-2-006]æ¡ç çæå¤±è´¥ï¼" + e.Message; |
| | | return objJsonResult; |
| | | } |
| | | } |