企业进销存管理系统

源代码在线查看: insertform.java

软件大小: 2537 K
上传用户: zbcs1025
关键词: 进销 管理系统
下载地址: 免注册下载 普通下载 VIP

相关代码

				package actionform;
				
				import java.io.UnsupportedEncodingException;
				
				import org.apache.struts.action.ActionForm;
				
				public class Insertform extends ActionForm{
					String serverid ="";
					String servername ="";
					String serveraddress ="";
					String serverlinker ="";
					String servertel ="";
					String serverbank ="";
					String servercard ="";
					public String getServeraddress() {
						if(serveraddress!=null){
							byte[] b;
							try {
								b = serveraddress.getBytes("8859_1");
								serveraddress=new String(b,0,b.length,"utf-8");//乱码处理
							} catch (UnsupportedEncodingException e) {
								// TODO Auto-generated catch block
								e.printStackTrace();
							}
							}
						return serveraddress;
					}
					public void setServeraddress(String serveraddress) {
						this.serveraddress = serveraddress;
					}
					public String getServerbank() {
						if(serverbank!=null){
							byte[] b;
							try {
								b = serverbank.getBytes("8859_1");
								serverbank=new String(b,0,b.length,"utf-8");//乱码处理
							} catch (UnsupportedEncodingException e) {
								// TODO Auto-generated catch block
								e.printStackTrace();
							}
							}
						return serverbank;
					}
					public void setServerbank(String serverbank) {
						this.serverbank = serverbank;
					}
					public String getServercard() {
						if(servercard!=null){
							byte[] b;
							try {
								b =servercard.getBytes("8859_1");
								servercard=new String(b,0,b.length,"utf-8");//乱码处理
							} catch (UnsupportedEncodingException e) {
								// TODO Auto-generated catch block
								e.printStackTrace();
							}
							}
						return servercard;
					}
					public void setServercard(String servercard) {
						this.servercard = servercard;
					}
					public String getServerid() {
						if(serverid!=null){
							byte[] b;
							try {
								b = serverid.getBytes("8859_1");
								serverid=new String(b,0,b.length,"utf-8");//乱码处理
							} catch (UnsupportedEncodingException e) {
								// TODO Auto-generated catch block
								e.printStackTrace();
							}
							}
						return serverid;
					}
					public void setServerid(String serverid) {
						this.serverid = serverid;
					}
					public String getServerlinker() {
						if(serverlinker!=null){
							byte[] b;
							try {
								b = serverlinker.getBytes("8859_1");
								serverlinker=new String(b,0,b.length,"utf-8");//乱码处理
							} catch (UnsupportedEncodingException e) {
								// TODO Auto-generated catch block
								e.printStackTrace();
							}
							}
						return serverlinker;
					}
					public void setServerlinker(String serverlinker) {
						this.serverlinker = serverlinker;
					}
					public String getServername() {
						if(servername!=null){
							byte[] b;
							try {
								b = servername.getBytes("8859_1");
								servername=new String(b,0,b.length,"utf-8");//乱码处理
							} catch (UnsupportedEncodingException e) {
								// TODO Auto-generated catch block
								e.printStackTrace();
							}
							}
						return servername;
					}
					public void setServername(String servername) {
						this.servername = servername;
					}
					public String getServertel() {
						if(servertel!=null){
							byte[] b;
							try {
								b = servertel.getBytes("8859_1");
								servertel=new String(b,0,b.length,"utf-8");//乱码处理
							} catch (UnsupportedEncodingException e) {
								// TODO Auto-generated catch block
								e.printStackTrace();
							}
							}
						return servertel;
					}
					public void setServertel(String servertel) {
						this.servertel = servertel;
					}
					
				
				
				}
							

相关资源