Commit 6cbde5ec authored by kmandhre's avatar kmandhre

update iss_varience


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94202 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b8831f42
......@@ -37,7 +37,8 @@ BomAmdConfLocal, BomAmdConfRemote
String errString = null;
ResultSet rs = null,rs1=null;
String bomcode = "", loginEmpCode="";
String supplycodemfg="",issvarience="",issvarvaltype="",locusagetype="",mfgref="",bomlineno="";
String supplycodemfg="",issVarienceType="",issvarvaltype="",locusagetype="",mfgref="",bomlineno="";
double issVarience = 0;
int cnt = 0,updCnt=0,updCnt1=0;
......@@ -125,7 +126,7 @@ BomAmdConfLocal, BomAmdConfRemote
System.out.println("@@@@@@ inside cnt1 " + cnt);
sql2 = " select bom_code,line_no__bom,"
+ "supp_code__mfg,mfg_ref,iss_varience_type,"
+"iss_var_valtype,loc_usage_type "
+"iss_var_valtype,loc_usage_type ,iss_varience "
+ "from bomamd_det where amd_no = ? ";
pstmt1 = conn.prepareStatement(sql2);
......@@ -138,9 +139,12 @@ BomAmdConfLocal, BomAmdConfRemote
bomlineno = checknull(rs1.getString("line_no__bom"));
supplycodemfg = checknull(rs1.getString("supp_code__mfg"));
mfgref = checknull(rs1.getString("mfg_ref"));
issvarience = checknull(rs1.getString("iss_varience_type"));
issVarienceType = checknull(rs1.getString("iss_varience_type"));
issvarvaltype = checknull(rs1.getString("iss_var_valtype"));
locusagetype = checknull(rs1.getString("loc_usage_type"));
locusagetype = checknull(rs1.getString("loc_usage_type"));
//added by kunal on 04/feb/14 add issVarience in bom amendment
issVarience = rs1.getDouble("iss_varience");
......@@ -148,15 +152,16 @@ BomAmdConfLocal, BomAmdConfRemote
if (bomlineno != null && bomlineno.trim().length() > 0)
{
sql = " update bomdet set supp_code__mfg=?,mfg_ref=?,iss_varience_type=?,iss_var_valtype=?,loc_usage_type=? where bom_code = ? and line_no = ? ";
sql = " update bomdet set supp_code__mfg=?,mfg_ref=?,iss_varience_type=?,iss_var_valtype=?,loc_usage_type=? , iss_varience = ? where bom_code = ? and line_no = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, supplycodemfg);
pstmt.setString(2, mfgref);
pstmt.setString(3, issvarience);
pstmt.setString(3, issVarienceType);
pstmt.setString(4, issvarvaltype);
pstmt.setString(5, locusagetype);
pstmt.setString(6, bomcode);
pstmt.setString(7, bomlineno);
pstmt.setDouble(6, issVarience);
pstmt.setString(7, bomcode);
pstmt.setString(8, bomlineno);
updCnt = pstmt.executeUpdate();
pstmt.close();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment