📄 orderviewcontrolor.java
字号:
private String strIntoLignum;
private String strIntoGrade;
private String strIntoMarque;
private String strIntoType;
private String strIntoObjDepot;
private String strIntoSrcDepot;
private String strIntoForStockId;
private String strIntoDate;
private String strIntoBulk;
private String strIntoPrice;
private String strIntoUpdId;
private String strIntoUpdLignum;
private String strIntoUpdGrade;
private String strIntoUpdMarque;
private String strIntoUpdBulk;
private String strIntoUpdPrice;
private String strIntoDelId;
/********HDW************入库************入库**********end ******/
/********HDW************出库************出库**********begin*****/
private Command Out_Check_BACKCMD; //出库 的 查询
private Command Out_Check_OKCMD;
private Form OutCheckForm;
private TextField tf_OutCheck_Id;
private String strOutId;
private Command Out_AddMain_BACKCMD; //出库 添加 之 主表 添加
private Command Out_AddMain_OKCMD;
private Form OutAddMainForm;
private TextField tf_OutAdd_Id;
private TextField tf_OutStockMain_ID;
private TextField tf_Out_Date;
private Command Out_AddBranch_OKCMD; //出库 的 添加部分的 分支菜单
private Command Out_AddBranch_BACKCMD;
private List OutAddBranchList;
private Command Out_AddList_BACKCMD; //出库 添加 之 LIST表 添加
private Command Out_AddList_OKCMD;
private Form OutAddListForm;
private TextField tf_Out_Bulk;
private TextField tf_Out_Price;
private Command Out_CheckRes_OKCMD; //出库 的查询 结果
private Command Out_CheckRes_BACKCMD;
private Form OutCheckResForm;
private TextField tf_Out_Type;
private TextField tf_OutCheck_Date;
private TextField tf_Out_ObjDepot;
private TextField tf_Out_SrcDepot;
private TextField tf_OutCheckStockMain_ID;
private Command Out_Lignum_OKCMD; //出库 的查询 结果之 矿石种类的显示
private Command Out_Lignum_BACKCMD;
private List OutLignumList;
private Command Out_Grade_OKCMD; //出库 的查询 结果之 矿石品位的显示
private Command Out_Grade_BACKCMD;
private List OutGradeList;
private Command Out_Marque_OKCMD; //出库 的查询 结果之 矿石类型的显示
private Command Out_Marque_BACKCMD;
private List OutMarqueList;
private Command Out_Detail_OKCMD; //出库 的查询 结果之 详细的显示
private Command Out_Detail_BACKCMD;
private Form OutDetailForm;
private TextField tf_OutCheck_Bulk;
private TextField tf_OutCheck_Price;
private TextField tf_OutCheck_Total;
private Command Out_UpdList_OKCMD; //出库 的修改的 list菜单
private Command Out_UpdList_BACKCMD;
private List OutUpdateList;
private Command Out_Delete_BACKCMD; //出库 的 删除
private Command Out_Delete_OKCMD;
private Form OutDeleteForm;
private TextField tf_Out_DeleteId;
private Command Out_Update_BACKCMD; //出库 的修改
private Command Out_Update_OKCMD;
private Form OutUpdateForm;
private TextField tf_OutUpd_Id;
private Command Out_UpdAddList_BACKCMD; //出库 的修改 的添加出库LIST
private Command Out_UpdAddList_OKCMD;
private Form OutUpdAddListForm;
private TextField tf_OutUpdAdd_Bulk;
private TextField tf_OutUpdAdd_Price;
private String strOutLignum;
private String strOutGrade;
private String strOutMarque;
private String strOutType;
private String strOutObjDepot;
private String strOutSrcDepot;
private String strOutForStockId;
private String strOutDate;
private String strOutBulk;
private String strOutPrice;
private String strOutUpdId;
private String strOutUpdLignum;
private String strOutUpdGrade;
private String strOutUpdMarque;
private String strOutUpdBulk;
private String strOutUpdPrice;
private String strOutDelId;
/********HDW************出库************出库**********end *****/
/****************************hdw ******************begin*******************************/
String[] stringArray1 = { };
String[] stringArray9 = { };
String[] stringArray10 = { };
String[] stringArray11 = { };
String[] stringArray12 = { };
String[] stringArray13 = { "采购", "下发"};
String[] stringArray14 = { "销售", "转场"};
String[] stringArray2 = { "30%以下", "30%-40%", "40%-50%", "50%-60%", "60%以上" };
String[] stringArray3 = { "原矿", "精选矿", "尾矿" };
String[] stringArray4 = { "现金", "支票", "汇款", "转帐", "其他"};
ChoiceGroup[] groups = new ChoiceGroup[14];
MainCanvas mainCanvas = new MainCanvas();
/****************************hdw ******************end *******************************/
public OrderViewControlor() {
display = null;
}
private void initialize() {
display = Display.getDisplay(this);
//create LoginForm
exitCMD = new Command("退出", Command.EXIT, 0);
LoginCMD = new Command("登录", Command.OK, 0);
LoginForm = new Form("用户登录");
tf_userName = new TextField("用户名:", "", 256, TextField.ANY);
LoginForm.append(tf_userName);
tf_password = new TextField("密码:", "", 256, TextField.PASSWORD);
LoginForm.append(tf_password);
LoginForm.addCommand(LoginCMD);
LoginForm.addCommand(exitCMD);
LoginForm.setCommandListener(this);
display.setCurrent(LoginForm);
System.out.println("1111111111111111111111111");
}
public void createMainMenu() { //主菜单
//create mainMenuForm
display = Display.getDisplay(this);
mc_OKCMD = new Command("选择", Command.OK, 0);
mc_backCMD = new Command("返回", Command.BACK, 0);
mainCanvas.addCommand(mc_OKCMD);
mainCanvas.addCommand(mc_backCMD);
mainCanvas.setCommandListener(this);
display.setCurrent(mainCanvas);
}
public void createStockList() { //采购 的 功能选择菜单
display = Display.getDisplay(this);
list_OKCMD = new Command("选择", Command.OK, 1);
list_backCMD = new Command("返回", Command.BACK, 1);
stockList = new List("采购功能菜单", Choice.IMPLICIT);
stockList.append("查询", null);
stockList.append("添加", null);
stockList.append("修改", null);
stockList.append("删除", null);
stockList.addCommand(list_OKCMD);
stockList.addCommand(list_backCMD);
stockList.setCommandListener(this);
display.setCurrent(stockList);
mainCanvas.removeCommand(mc_OKCMD); //释放“选择”按钮
mainCanvas.removeCommand(mc_backCMD); //释放“返回”按钮
}
public void createSaleList() { //销售 的 功能选择菜单
display = Display.getDisplay(this);
salelist_OKCMD = new Command("选择", Command.OK, 1);
salelist_backCMD = new Command("返回", Command.BACK, 1);
saleList = new List("销售功能菜单", Choice.IMPLICIT);
saleList.append("查询", null);
saleList.append("添加", null);
saleList.append("修改", null);
saleList.append("删除", null);
saleList.addCommand(salelist_OKCMD);
saleList.addCommand(salelist_backCMD);
saleList.setCommandListener(this);
display.setCurrent(saleList);
mainCanvas.removeCommand(mc_OKCMD);
mainCanvas.removeCommand(mc_backCMD);
}
public void createInList() { //入库 的 功能选择菜单
display = Display.getDisplay(this);
inlist_OKCMD = new Command("选择", Command.OK, 1);
inlist_backCMD = new Command("返回", Command.BACK, 1);
inList = new List("入库功能菜单", Choice.IMPLICIT);
inList.append("查询", null);
inList.append("添加", null);
inList.append("修改", null);
inList.append("删除", null);
inList.addCommand(inlist_OKCMD);
inList.addCommand(inlist_backCMD);
inList.setCommandListener(this);
display.setCurrent(inList);
mainCanvas.removeCommand(mc_OKCMD);
mainCanvas.removeCommand(mc_backCMD);
}
public void createOutList() { //出库 的 功能选择菜单
display = Display.getDisplay(this);
outlist_OKCMD = new Command("选择", Command.OK, 1);
outlist_backCMD = new Command("返回", Command.BACK, 1);
outList = new List("出库功能菜单", Choice.IMPLICIT);
outList.append("查询", null);
outList.append("添加", null);
outList.append("修改", null);
outList.append("删除", null);
outList.addCommand(outlist_OKCMD);
outList.addCommand(outlist_backCMD);
outList.setCommandListener(this);
display.setCurrent(outList);
mainCanvas.removeCommand(mc_OKCMD);
mainCanvas.removeCommand(mc_backCMD);
}
/*************采购***********采购**************采购*******begin*******/
public void createCheckForm() { //采购 的 查询
display = Display.getDisplay(this);
check_backCMD = new Command("返回", Command.EXIT, 0);
checkCMD = new Command("查询", Command.OK, 0);
CheckForm = new Form("采购信息查询");
tf_stockID = new TextField("采购单编号:", "", 256, TextField.ANY);
CheckForm.append(tf_stockID);
CheckForm.addCommand(checkCMD);
CheckForm.addCommand(check_backCMD);
CheckForm.setCommandListener(this);
display.setCurrent(CheckForm);
}
public void createAddForm() { //采购 的添加 之 添加 采购主表
display = Display.getDisplay(this);
add_backCMD = new Command("返回", Command.EXIT, 0);
addCMD = new Command("添加", Command.OK, 0);
AddForm = new Form("采购信息添加");
tf_stockID = new TextField("采购单编号:", "", 256, TextField.ANY);
AddForm.append(tf_stockID);
tf_stockDate = new TextField("采购日期:", "", 256, TextField.ANY);
AddForm.append(tf_stockDate);
AddForm.append(groups[8]);
AddForm.addCommand(addCMD);
AddForm.addCommand(add_backCMD);
AddForm.setCommandListener(this);
display.setCurrent(AddForm);
}
public void createStockBranchList() { //采购 的 添加部分的 分菜单
display = Display.getDisplay(this);
branchlist_OKCMD = new Command("选择", Command.OK, 1);
branchlist_BACKCMD = new Command("返回", Command.BACK, 1);
stockbranchList = new List("填写采购单", Choice.IMPLICIT);
stockbranchList.append("采购单详细", null);
stockbranchList.append("支付情况", null);
stockbranchList.addCommand(branchlist_OKCMD);
stockbranchList.addCommand(branchlist_BACKCMD);
stockbranchList.setCommandListener(this);
display.setCurrent(stockbranchList);
}
public void createAddListForm() { //采购 的添加 之 添加 采购list 表
display = Display.getDisplay(this);
addlist_backCMD = new Command("返回", Command.EXIT, 0);
addlistCMD = new Command("添加", Command.OK, 0);
AddListForm = new Form("填写采购单详细:");
AddListForm.append(groups[0]);
AddListForm.append(groups[1]);
AddListForm.append(groups[2]);
tf_stockBulk = new TextField("采购吨数:", "", 256, TextField.ANY);
AddListForm.append(tf_stockBulk);
tf_stockPrice = new TextField("采购单价:", "", 256, TextField.ANY);
AddListForm.append(tf_stockPrice);
AddListForm.addCommand(addlistCMD);
AddListForm.addCommand(addlist_backCMD);
AddListForm.setCommandListener(this);
display.setCurrent(AddListForm);
}
public void createUpdAddListForm() { //采购 的修改 之 添加 采购list 表
display = Display.getDisplay(this);
updaddlist_backCMD = new Command("返回", Command.EXIT, 0);
updaddlistCMD = new Command("添加", Command.OK, 0);
UpdAddListForm = new Form("填写采购单详细:");
UpdAddListForm.append(groups[4]);
UpdAddListForm.append(groups[5]);
UpdAddListForm.append(groups[6]);
utf_stockBulk = new TextField("采购吨数:", "", 256, TextField.ANY);
UpdAddListForm.append(utf_stockBulk);
utf_stockPrice = new TextField("采购单价:", "", 256, TextField.ANY);
UpdAddListForm.append(utf_stockPrice);
UpdAddListForm.addCommand(updaddlistCMD);
UpdAddListForm.addCommand(updaddlist_backCMD);
UpdAddListForm.setCommandListener(this);
display.setCurrent(UpdAddListForm);
}
public void createPayListForm() { //采购 的添加 之 添加 支付
display = Display.getDisplay(this);
paylist_BACKCMD = new Command("返回", Command.EXIT, 0);
paylistCMD = new Command("添加", Command.OK, 0);
PayListForm = new Form("填写支付详细:");
PayListForm.append(groups[3]);
tf_payTimes = new TextField("支付次数:", "", 256, TextField.ANY);
PayListForm.append(tf_payTimes);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -