// 密码框
 private void passdialog() {
   //    	View myview=null;
   //		// TODO Auto-generated method stub
   //		LayoutInflater factory = LayoutInflater.from(context);
   //		myview=factory.inflate(R.layout.selectinteger, null);
   //		final EditText dialoginte=(EditText) myview.findViewById(R.id.dialoginte);
   //
   //		Dialog dialog = new AlertDialog.Builder(context)
   //		.setTitle("设置")
   //		.setPositiveButton("确定", new DialogInterface.OnClickListener()
   //		{
   //
   //			@Override
   //			public void onClick(DialogInterface dialog, int which)
   //			{
   //				boolean istrue=false;
   //				// TODO Auto-generated method stub
   //
   //	ToolClass.Log(ToolClass.INFO,"EV_JNI","APP<<数值="+dialoginte.getText().toString(),"log.txt");
   //				//调出维护页面密码
   //				vmc_system_parameterDAO parameterDAO = new vmc_system_parameterDAO(context);//
   // 创建InaccountDAO对象
   //			    // 获取所有收入信息,并存储到List泛型集合中
   //		    	Tb_vmc_system_parameter tb_inaccount = parameterDAO.find();
   //		    	if(tb_inaccount!=null)
   //		    	{
   //		    		String Pwd=tb_inaccount.getMainPwd().toString();
   //		    		if(Pwd==null)
   //		    		{
   //		    			//ToolClass.Log(ToolClass.INFO,"EV_JNI","APP<<数值=null","log.txt");
   //		    			istrue=passcmp(null,dialoginte.getText().toString());
   //		    		}
   //		    		else
   //		    		{
   //		    			//ToolClass.Log(ToolClass.INFO,"EV_JNI","APP<<数值="+Pwd,"log.txt");
   //		    			istrue=passcmp(Pwd,dialoginte.getText().toString());
   //		    		}
   //		    	}
   //		    	else
   //		    	{
   //		    		istrue=passcmp(null,dialoginte.getText().toString());
   //				}
   //
   //		    	if(istrue)
   //		    	{
   //		    		ToolClass.Log(ToolClass.INFO,"EV_JNI","APP<<确定退出","log.txt");
   //		    		//步骤二、fragment向activity发送回调信息
   //		        	listterner.finishBusiness();
   //		    	}
   //		    	else
   //		    	{
   //		    		listterner.restarttimer();//重新打开定时器
   //				}
   //			}
   //		})
   //		.setNegativeButton("取消",  new DialogInterface.OnClickListener()//取消按钮,点击后调用监听事件
   //    	{
   //			@Override
   //			public void onClick(DialogInterface dialog, int which)
   //			{
   //				// TODO Auto-generated method stub
   //				listterner.restarttimer();//重新打开定时器
   //			}
   //    	})
   //		.setView(myview)//这里将对话框布局文件加入到对话框中
   //		.create();
   //		dialog.show();
   listterner.stoptimer(); // 关闭定时器
   ToolClass.Log(ToolClass.INFO, "EV_JNI", "APP<<打开密码框", "log.txt");
   // 步骤二、fragment向activity发送回调信息
   listterner.finishBusiness();
 }
 // num出货柜号,type=1输入数字,type=0回退数字
 private void chuhuo(String num, int type) {
   if (type == 1) {
     if (count < 3) {
       count++;
       huo = huo + num;
       txtadsTip.setText(huo);
     }
   } else if (type == 0) {
     if (count > 0) {
       count--;
       huo = huo.substring(0, huo.length() - 1);
       if (count == 0) txtadsTip.setText("");
       else txtadsTip.setText(huo);
     }
   }
   if (count == 3) {
     cabID = huo.substring(0, 1);
     huoID = huo.substring(1, huo.length());
     vmc_columnDAO columnDAO = new vmc_columnDAO(context); // 创建InaccountDAO对象		
     Tb_vmc_product tb_inaccount = columnDAO.getColumnproduct(cabID, huoID);
     if (tb_inaccount != null) {
       productID = tb_inaccount.getProductID().toString();
       prosales = String.valueOf(tb_inaccount.getSalesPrice());
       proImage = tb_inaccount.getAttBatch1();
       proID = productID + "-" + tb_inaccount.getProductName().toString();
       ToolClass.Log(
           ToolClass.INFO,
           "EV_JNI",
           "APP<<商品proID="
               + proID
               + " productID="
               + productID
               + " proType="
               + "2"
               + " cabID="
               + cabID
               + " huoID="
               + huoID
               + " prosales="
               + prosales
               + " count="
               + "1",
           "log.txt");
       count = 0;
       huo = "";
       txtadsTip.setText("");
       //				Intent intent = null;// 创建Intent对象
       //	        	intent = new Intent(context, BusgoodsSelect.class);// 使用Accountflag窗口初始化Intent
       //	        	intent.putExtra("proID", proID);
       //	        	intent.putExtra("productID", productID);
       //	        	intent.putExtra("proImage", proImage);
       //	        	intent.putExtra("prosales", prosales);
       //	        	intent.putExtra("procount", "1");
       //	        	intent.putExtra("proType", "2");//1代表通过商品ID出货,2代表通过货道出货
       //	        	intent.putExtra("cabID", cabID);//出货柜号,proType=1时无效
       //	        	intent.putExtra("huoID", huoID);//出货货道号,proType=1时无效
       //
       //
       ////	        	OrderDetail.setProID(proID);
       ////            	OrderDetail.setProductID(productID);
       ////            	OrderDetail.setProType("2");
       ////            	OrderDetail.setCabID(cabID);
       ////            	OrderDetail.setColumnID(huoID);
       ////            	OrderDetail.setShouldPay(Float.parseFloat(prosales));
       ////            	OrderDetail.setShouldNo(1);
       //
       //	        	startActivityForResult(intent,REQUEST_CODE);// 打开Accountflag
       Map<String, String> str = new HashMap<String, String>();
       str.put("proID", proID);
       str.put("productID", productID);
       str.put("proImage", proImage);
       str.put("prosales", prosales);
       str.put("procount", "1");
       str.put("proType", "2"); // 1代表通过商品ID出货,2代表通过货道出货
       str.put("cabID", cabID); // 出货柜号,proType=1时无效
       str.put("huoID", huoID); // 出货货道号,proType=1时无效
       listterner.gotoBusiness(3, str);
     } else {
       ToolClass.Log(
           ToolClass.INFO,
           "EV_JNI",
           "APP<<商品proID="
               + proID
               + " productID="
               + productID
               + " proType="
               + "2"
               + " cabID="
               + cabID
               + " huoID="
               + huoID
               + " prosales="
               + prosales
               + " count="
               + "1",
           "log.txt");
       count = 0;
       huo = "";
       txtadsTip.setText("");
     }
   }
 }