mxb_new :dialog {
  label = "明细表输入对话框";
  :row {
	:column {
	   :text {
		label = "数量:";
	   }
	   :spacer_1{}
	   :spacer_1{}
	   :text {
		label = "中文名称:";
	   }
	   :spacer_1{}
	   :spacer_1{}
	   :text {
		label = "英文名称:";
	   }
	   :spacer_1{}
	   :spacer_1{}
	   :text {
		label = "序号:";
	   }
	}
	:column {
	   :edit_box {
		key = "A_QTY";
		width = 20;
	   }
	   :popup_list {
		key = "A_QTY_VALUE";
		width = 20;
	   }
	   :spacer_1{}
	   :edit_box {
		key = "A_CHIN";
		width = 20;
	   }
	   :popup_list {
		key = "A_CHIN_VALUE";
		width = 20;
	   }
	   :spacer_1{}
	   :edit_box {
		key = "A_DESC";
		width = 20;
	   }
	   :popup_list {
		key = "A_DESC_VALUE";
		width = 20;
	   }
	   :spacer_1{}
	   :edit_box {
		key = "A_ITEM";
		width = 20;
	   }
	}
	:column {
	   :text {
		label = "材料:";
	   }
	   :spacer_1{}
	   :spacer_1{}
	   :text {
		label = "规格:";
	   }
	   :spacer_1{}
	   :spacer_1{}
	   :text {
		label = "备注:";
	   }
	   :spacer_1{}
	   :spacer_1{}
	   :spacer_1{}
	}
	:column {
	   :edit_box {
		key = "A_MAT";
		width = 20;
	   }
	   :popup_list {
		key = "A_MAT_VALUE";
		width = 20;
	   }
	   :spacer_1{}
	   :edit_box {
		key = "A_COT";
		width = 20;
	   }
	   :popup_list {
		key = "A_COT_VALUE";
		width = 20;
	   }
	   :spacer_1{}
	   :edit_box {
		key = "A_OBV";
		width = 20;
	   }
	   :popup_list {
		key = "A_OBV_VALUE";
		width = 20;
	   }
	   :spacer_1{}
	   :button {
	   	label = "基点选择";
	   	key = "A_BASE";
	   }
	}
   }
   :spacer_1{}
   :row {
	:button {
	   label = "看图";
	   key = "A_LOOK";
	   fixed_width = true;
	}
	:button {
	   label = "应用>>";
	   key = "A_INS";
	   fixed_width = false;
	}
	:row {
	   ok_cancel;
	}
   }
}

mxb_edit :dialog {
  label = "明细表项目编辑对话框";
  :row {
	:column {
	   :text {
		label = "数        量:";
	   }
	   :spacer_1{}
	   :spacer_1{}
	   :text {
		label = "中文名称:";
	   }
	   :spacer_1{}
	   :spacer_1{}
	   :text {
		label = "英文名称:";
	   }
	   :spacer_1{}
	   :spacer_1{}
	   :text {
		label = "序        号:";
	   }
	}
	:column {
	   :edit_box {
		key = "A_QTY";
		width = 20;
	   }
	   :popup_list {
		key = "A_QTY_VALUE";
		width = 20;
	   }
	   :spacer_1{}
	   :edit_box {
		key = "A_CHIN";
		width = 20;
	   }
	   :popup_list {
		key = "A_CHIN_VALUE";
		width = 20;
	   }
	   :spacer_1{}
	   :edit_box {
		key = "A_DESC";
		width = 20;
	   }
	   :popup_list {
		key = "A_DESC_VALUE";
		width = 20;
	   }
	   :spacer_1{}
	   :row {
	   	:edit_box {
		   key = "A_REP";
	   	}
		:spacer_1{}
	   }
	}
	:column {
	   :text {
		label = "材料:";
	   }
	   :spacer_1{}
	   :spacer_1{}
	   :text {
		label = "规格:";
	   }
	   :spacer_1{}
	   :spacer_1{}
	   :text {
		label = "备注:";
	   }
	   :spacer_1{}
	   :spacer_1{}
	   :spacer_1{}
	}
	:column {
	   :edit_box {
		key = "A_MAT";
		width = 20;
	   }
	   :popup_list {
		key = "A_MAT_VALUE";
		width = 20;
	   }
	   :spacer_1{}
	   :edit_box {
		key = "A_COT";
		width = 20;
	   }
	   :popup_list {
		key = "A_COT_VALUE";
		width = 20;
	   }
	   :spacer_1{}
	   :edit_box {
		key = "A_OBV";
		width = 20;
	   }
	   :popup_list {
		key = "A_OBV_VALUE";
		width = 20;
	   }
	   :spacer_1{}
	   :spacer_1{}
	   :spacer_1{}
	}
   }
   :spacer_1{}
   :row {
	:spacer_1{}
	:button {
	   label = "删 除>";
	   key = "A_DEL";
	}
	:row {
	   ok_cancel;
	}
   }
   :text {
	key = "ERR_MSG";
	label = "";
   }
}

mxb_insert :dialog {
  label = "明细表输入对话框";
  :row {
	:column {
	   :text {
		label = "数        量:";
	   }
	   :spacer_1{}
	   :spacer_1{}
	   :text {
		label = "中文名称:";
	   }
	   :spacer_1{}
	   :spacer_1{}
	   :text {
		label = "英文名称:";
	   }
	   :spacer_1{}
	   :spacer_1{}
	   :text {
		label = "序        号:";
	   }
	}
	:column {
	   :edit_box {
		key = "A_QTY";
		width = 20;
	   }
	   :popup_list {
		key = "A_QTY_VALUE";
		width = 20;
	   }
	   :spacer_1{}
	   :edit_box {
		key = "A_CHIN";
		width = 20;
	   }
	   :popup_list {
		key = "A_CHIN_VALUE";
		width = 20;
	   }
	   :spacer_1{}
	   :edit_box {
		key = "A_DESC";
		width = 20;
	   }
	   :popup_list {
		key = "A_DESC_VALUE";
		width = 20;
	   }
	   :spacer_1{}
	   :row {
	   	:edit_box {
		   key = "A_ITEM";
	   	}
		:spacer_1{}
	   }
	}
	:column {
	   :text {
		label = "材料:";
	   }
	   :spacer_1{}
	   :spacer_1{}
	   :text {
		label = "规格:";
	   }
	   :spacer_1{}
	   :spacer_1{}
	   :text {
		label = "备注:";
	   }
	   :spacer_1{}
	   :spacer_1{}
	   :spacer_1{}
	}
	:column {
	   :edit_box {
		key = "A_MAT";
		width = 20;
	   }
	   :popup_list {
		key = "A_MAT_VALUE";
		width = 20;
	   }
	   :spacer_1{}
	   :edit_box {
		key = "A_COT";
		width = 20;
	   }
	   :popup_list {
		key = "A_COT_VALUE";
		width = 20;
	   }
	   :spacer_1{}
	   :edit_box {
		key = "A_OBV";
		width = 20;
	   }
	   :popup_list {
		key = "A_OBV_VALUE";
		width = 20;
	   }
	   :spacer_1{}
	   :spacer_1{}
	   :spacer_1{}
	}
   }
   :spacer_1{}
   :row {
	:spacer_1{}
	:button {
	   label = "看图";
	   key = "A_LOOK";
	}
	:row {
	   ok_cancel;
	}
   }
   :text {
	key = "ERR_MSG";
	label = "";
   }
}