Example #1
0
 /**
  * 处理上传图片和上传文件
  * @param string $field
  * @param \Lite\DB\Model $model_instance
  * @return string
  */
 public static function displayField($field, Model $model_instance)
 {
     $value = $model_instance->{$field};
     $define = $model_instance->getPropertiesDefine($field);
     if ($define['rel'] == 'upload-image') {
         $value = $value ?: Config::get('app/default_image');
         //todo merge params
         return '<span class="image-thumb">' . self::getImg(Config::get('upload/url') . $value) . '</span>';
     } else {
         if ($define['rel'] == 'upload-file') {
             $value = $value ?: Config::get('app/default_image');
             return '<a href="' . Config::get('upload/url') . $value . '" target="_blank" title="' . h($value) . '">下载</a>';
         } else {
             return parent::displayField($field, $model_instance);
         }
     }
 }
Example #2
0
 public function updateUserGroupAccess($get, $post)
 {
     $user_group_id = $get['user_group_id'] ?: $post['user_group_id'];
     if (Router::isPost()) {
         $ex = Model::transaction(function () use($post, $user_group_id) {
             $con = "user_group_id = '" . addslashes($user_group_id) . "'";
             UserGroupAuth::deleteWhere(0, $con);
             $data = array();
             if ($post['act_bids']) {
                 foreach ($post['act_bids'] as $act_id) {
                     $data[] = array('user_group_id' => $user_group_id, 'action_id' => $act_id, 'type' => UserGroupAuth::TYPE_BLACK);
                 }
             }
             if ($post['act_wids']) {
                 foreach ($post['act_wids'] as $act_id) {
                     $data[] = array('user_group_id' => $user_group_id, 'action_id' => $act_id, 'type' => UserGroupAuth::TYPE_BLACK);
                 }
             }
             if ($data) {
                 UserGroupAuth::insertMany($data);
             }
         });
         return new Result(!$ex ? '操作成功' : $ex->getMessage(), !$ex, null, Router::getUrl('UserGroup'));
     }
     if (!$user_group_id) {
         $tmp = UserGroup::find()->one();
         $user_group_id = $tmp->id;
     }
     $act_list = AccessAction::find()->all(true);
     $act_ids = array_column($act_list, 'id');
     //user_group values
     $w_user_group_values = $b_user_group_values = array();
     if ($act_ids) {
         $user_group_values = UserGroupAuth::find('action_id IN ? AND user_group_id = ?', $act_ids, $user_group_id)->all(true);
         foreach ($user_group_values as $val) {
             if ($val['type'] == UserGroupAuth::TYPE_WHITE) {
                 $w_user_group_values[$val['action_id']] = $val;
             } else {
                 $b_user_group_values[$val['action_id']] = $val;
             }
         }
     }
     array_orderby($act_list, 'desc', SORT_DESC);
     $white_list = $black_list = array();
     foreach ($act_list as $act) {
         $a = $this->convertPathToArray('全部/' . $act['desc'], array($act['id'], $act['uri'], !!$w_user_group_values[$act['id']]));
         $white_list = array_merge_recursive($white_list, $a);
         $b = $this->convertPathToArray('全部/' . $act['desc'], array($act['id'], $act['uri'], !!$b_user_group_values[$act['id']]));
         $black_list = array_merge_recursive($black_list, $b);
     }
     return array('user_group_id' => $user_group_id, 'auth_list' => array($white_list, $black_list), 'user_group_list' => UserGroup::find()->all());
 }
Example #3
0
 public function __construct($data = array())
 {
     $this->setPropertiesDefine(array('user' => array('getter' => function ($item) {
         return User::findOneByPk($item->user_id);
     }), 'action' => array('getter' => function ($item) {
         $all = AccessAction::find()->all(true);
         $all = array_group($all, 'id', true);
         return new AccessAction($all[$item->action_id]);
     }), 'type_text' => array('getter' => function ($item) {
         return self::$type_list[$item->type];
     })));
     parent::__construct($data);
 }
Example #4
0
 public function __construct($data = array())
 {
     $this->setPropertiesDefine(array('id' => array('alias' => 'id', 'type' => 'int', 'length' => 10, 'primary' => true, 'required' => true, 'readonly' => true, 'entity' => true), 'name' => array('alias' => '名称', 'type' => 'string', 'length' => 20, 'required' => true, 'entity' => true), 'symbol' => array('alias' => '货币符号', 'type' => 'string', 'length' => 10, 'required' => true, 'entity' => true), 'unit_name' => array('alias' => '货币单位', 'type' => 'string', 'length' => 10, 'required' => true, 'entity' => true)));
     parent::__construct($data);
 }
Example #5
0
 public function __construct($data = array())
 {
     $this->setPropertiesDefine(array('id' => array('alias' => 'id', 'type' => 'int', 'length' => 11, 'primary' => true, 'required' => true, 'readonly' => true, 'entity' => true), 'sample_id' => array('alias' => '样品id', 'type' => 'int', 'length' => 11, 'required' => true, 'entity' => true), 'image_url' => array('alias' => '图片URL', 'type' => 'string', 'length' => 200, 'default' => '', 'entity' => true)));
     parent::__construct($data);
 }
 public function __construct($data = array())
 {
     $this->setPropertiesDefine(array('id' => array('alias' => 'id', 'type' => 'int', 'length' => 11, 'primary' => true, 'required' => true, 'readonly' => true, 'entity' => true), 'produce_order_id' => array('alias' => '样品生产单id', 'type' => 'int', 'length' => 11, 'required' => true, 'entity' => true), 'sample_id' => array('alias' => '样品id', 'type' => 'int', 'length' => 11, 'required' => true, 'entity' => true), 'produce_request' => array('alias' => '生产要求', 'type' => 'text', 'length' => 0, 'default' => null, 'entity' => true), 'produce_num' => array('alias' => '生产数量', 'type' => 'int', 'length' => 45, 'required' => true, 'min' => 0, 'entity' => true), 'produce_process_state' => array('alias' => '生产工序状态', 'type' => 'int', 'length' => 10, 'default' => 0, 'entity' => true), 'produce_employee_id' => array('alias' => '当前生产用户', 'type' => 'int', 'length' => 11, 'default' => 0, 'entity' => true), 'state' => array('alias' => '状态', 'type' => 'enum', 'default' => 0, 'options' => array('0' => '默认', '1' => '已完成'), 'entity' => true)));
     parent::__construct($data);
 }
 public function __construct($data = array())
 {
     $this->setPropertiesDefine(array('id' => array('alias' => 'id', 'type' => 'int', 'length' => 11, 'primary' => true, 'required' => true, 'readonly' => true, 'entity' => true), 'business_order_id' => array('alias' => '订单', 'type' => 'int', 'length' => 11, 'required' => true, 'entity' => true), 'sample_id' => array('alias' => '样品', 'type' => 'int', 'length' => 11, 'required' => true, 'entity' => true), 'sample_package_id' => array('alias' => '样品包装', 'type' => 'int', 'length' => 11, 'required' => true, 'entity' => true), 'sample_num' => array('alias' => '样品数量', 'type' => 'float', 'length' => 10, 'precision' => 2, 'default' => 0.0, 'entity' => true), 'sample_unit_price' => array('alias' => '样品单价', 'type' => 'float', 'length' => 10, 'precision' => 2, 'description' => '元', 'default' => 0.0, 'entity' => true)));
     parent::__construct($data);
 }
Example #8
0
 public function __construct($data = array())
 {
     $this->setPropertiesDefine(array('id' => array('alias' => 'id', 'type' => 'int', 'length' => 10, 'primary' => true, 'required' => true, 'readonly' => true, 'entity' => true), 'request_url' => array('alias' => 'cgi请求url', 'type' => 'string', 'length' => 255, 'required' => true, 'entity' => true), 'params' => array('alias' => '请求参数', 'type' => 'string', 'length' => 500, 'default' => '', 'entity' => true), 'client_ip' => array('alias' => 'IP', 'type' => 'string', 'length' => 20, 'default' => null, 'entity' => true), 'locate_file' => array('alias' => '发起文件路径', 'type' => 'string', 'length' => 200, 'default' => '', 'entity' => true), 'locate_line' => array('alias' => '所在行数', 'type' => 'int', 'length' => 11, 'default' => null, 'entity' => true), 'run_time' => array('alias' => '运行时间', 'type' => 'int', 'length' => 11, 'required' => true, 'description' => '毫秒', 'entity' => true), 'create_time' => array('alias' => '记录创建时间', 'type' => 'int', 'length' => 11, 'required' => true, 'entity' => true)));
     parent::__construct($data);
 }
Example #9
0
 public function __construct($data = array())
 {
     $this->setPropertiesDefine(array('id' => array('alias' => 'id', 'type' => 'int', 'length' => 11, 'primary' => true, 'required' => true, 'readonly' => true, 'min' => 0, 'entity' => true), 'level' => array('alias' => '´íÎ󼶱ð', 'type' => 'string', 'length' => 1, 'default' => 'v', 'entity' => true), 'tag' => array('alias' => '´íÎó±êÇ©', 'type' => 'string', 'length' => 500, 'default' => null, 'entity' => true), 'file' => array('alias' => 'Îļþ', 'type' => 'string', 'length' => 200, 'default' => null, 'entity' => true), 'line' => array('alias' => '³ö´íÎļþÐÐÊý', 'type' => 'int', 'length' => 5, 'min' => 0, 'default' => null, 'entity' => true), 'content' => array('alias' => 'ÄÚÈÝ', 'type' => 'string', 'length' => 255, 'default' => null, 'entity' => true), 'state' => array('alias' => '״̬£º0£ºÎ´È·ÈÏ£¬1£ºÒÑÈ·ÈÏ£¬2£ºÒÑ´¦Àí', 'type' => 'int', 'length' => 2, 'default' => 0, 'entity' => true), 'datetime' => array('alias' => 'ʱ¼ä', 'type' => 'datetime', 'length' => 0, 'required' => true, 'entity' => true)));
     parent::__construct($data);
 }
Example #10
0
 /**
  * 获取状态变更按钮
  * 如果是最后一个状态,则不扭转
  * @param \Lite\DB\Model $model 数据模型
  * @param null $field 状态字段名
  * @param array $state_options 状态扭转选项(缺省读取options)
  * @return string
  * @throws \Lite\Exception\Exception
  */
 public static function getNextStateBtn(Model $model, $field = null, $state_options = array())
 {
     if (!$field && $model instanceof ModelInterface) {
         $field = $model->getStateKey();
     }
     if (!$field) {
         throw new Exception('next state field not found');
     }
     $options = $state_options ?: $model->getPropertiesDefine($field)['options'];
     $val = $model->{$field};
     $pk = $model->getPrimaryKey();
     $matched = false;
     foreach ($options as $k => $opt_name) {
         if ($val == $k) {
             $matched = true;
         } else {
             if ($matched) {
                 return '<a href="' . self::getUrl(self::getController() . '/state', array($field => $k, $pk => $model->{$pk})) . '" rel="async" class="state-changer btn">' . $opt_name . '</a>';
             }
         }
     }
     return '';
 }
Example #11
0
 public function __construct($data = array())
 {
     $this->setPropertiesDefine(array('id' => array('alias' => 'id', 'type' => 'int', 'length' => 10, 'primary' => true, 'required' => true, 'readonly' => true, 'entity' => true), 'sample_id' => array('alias' => '样品ID', 'type' => 'int', 'length' => 10, 'required' => true, 'entity' => true), 'mud_volume' => array('alias' => '泥浆体积', 'type' => 'double', 'length' => 10, 'precision' => 2, 'min' => 0, 'description' => 'ML', 'default' => 0.0, 'entity' => true), 'adobe_weight' => array('alias' => '土坯重量', 'type' => 'double', 'length' => 10, 'precision' => 2, 'min' => 0, 'description' => 'KG', 'default' => 0.0, 'entity' => true), 'color_glaze_id' => array('alias' => '色料釉料', 'type' => 'int', 'length' => 10, 'required' => true, 'entity' => true), 'flower_paper' => array('alias' => '花纸', 'type' => 'int', 'length' => 10, 'required' => true, 'entity' => true), 'shelf_no' => array('alias' => '货架展位', 'type' => 'string', 'length' => 20, 'default' => '', 'entity' => true)));
     parent::__construct($data);
 }
Example #12
0
 public function __construct($data = array())
 {
     $this->setPropertiesDefine(array('id' => array('alias' => 'id', 'type' => 'int', 'length' => 11, 'primary' => true, 'required' => true, 'readonly' => true, 'entity' => true), 'user_group_id' => array('alias' => '用户组', 'type' => 'int', 'length' => 10, 'required' => true, 'entity' => true), 'name' => array('alias' => '用户名', 'type' => 'string', 'length' => 32, 'required' => true, 'unique' => true, 'entity' => true), 'password' => array('alias' => '密码', 'type' => 'string', 'length' => 32, 'required' => true, 'entity' => true), 'real_name' => array('alias' => '真实姓名', 'type' => 'string', 'length' => 45, 'required' => true, 'entity' => true), 'create_time' => array('alias' => '创建时间', 'type' => 'timestamp', 'length' => 0, 'readonly' => true, 'default' => time(), 'entity' => true), 'update_time' => array('alias' => '更新时间', 'type' => 'timestamp', 'length' => 0, 'readonly' => true, 'default' => '0000-00-00 00:00:00', 'entity' => true), 'last_login_time' => array('alias' => '最后登录时间', 'type' => 'datetime', 'length' => 0, 'default' => '0000-00-00 00:00:00', 'entity' => true), 'last_login_ip' => array('alias' => '最后登录IP', 'type' => 'string', 'length' => 15, 'default' => '', 'entity' => true), 'state' => array('alias' => '状态', 'type' => 'enum', 'default' => 0, 'options' => array('0' => '禁用', '1' => '启用'), 'entity' => true)));
     parent::__construct($data);
 }
Example #13
0
 public function __construct($data = array())
 {
     $this->setPropertiesDefine(array('id' => array('alias' => '工艺ID', 'type' => 'int', 'length' => 11, 'primary' => true, 'required' => true, 'readonly' => true, 'entity' => true), 'sample_id' => array('alias' => 'SKU_id', 'type' => 'int', 'length' => 11, 'required' => true, 'entity' => true), 'flow_id' => array('alias' => '流程', 'type' => 'int', 'length' => 11, 'required' => true, 'entity' => true), 'technic_desc' => array('alias' => '工艺描述', 'type' => 'text', 'length' => 0, 'default' => null, 'entity' => true)));
     parent::__construct($data);
 }
Example #14
0
 public function __construct($data = array())
 {
     $this->setPropertiesDefine(array('id' => array('alias' => 'id', 'type' => 'int', 'length' => 11, 'primary' => true, 'required' => true, 'readonly' => true, 'entity' => true), 'sample_no' => array('alias' => '货号', 'type' => 'string', 'length' => 45, 'required' => true, 'unique' => true, 'entity' => true), 'sample_type' => array('alias' => '样品类型', 'type' => 'enum', 'required' => true, 'options' => array('1' => '单件', '2' => '套件'), 'entity' => true), 'category_id' => array('alias' => '分类', 'type' => 'int', 'length' => 10, 'required' => true, 'entity' => true), 'chinese_name' => array('alias' => '中文名称', 'type' => 'string', 'length' => 45, 'required' => true, 'entity' => true), 'english_name' => array('alias' => '英文名称', 'type' => 'string', 'length' => 45, 'default' => '', 'entity' => true), 'key_words' => array('alias' => '关键字', 'type' => 'text', 'length' => 0, 'default' => null, 'entity' => true), 'material_id' => array('alias' => '材质', 'type' => 'int', 'length' => 10, 'required' => true, 'entity' => true), 'tags' => array('alias' => '标签', 'type' => 'text', 'length' => 0, 'default' => null, 'entity' => true), 'state' => array('alias' => '状态', 'type' => 'enum', 'default' => 0, 'options' => array('0' => '草稿', '1' => '正常'), 'entity' => true)));
     parent::__construct($data);
 }
Example #15
0
 public function __construct($data = array())
 {
     $this->setPropertiesDefine(array('id' => array('alias' => 'id', 'type' => 'int', 'length' => 11, 'primary' => true, 'required' => true, 'readonly' => true, 'entity' => true), 'department_id' => array('alias' => '部门ID', 'type' => 'int', 'length' => 11, 'required' => true, 'entity' => true), 'uid' => array('alias' => '用户id', 'type' => 'int', 'length' => 11, 'required' => true, 'entity' => true), 'utype' => array('alias' => '用户类型 1:工人,2:用户', 'type' => 'int', 'length' => 1, 'required' => true, 'entity' => true), 'create_time' => array('alias' => '添加时间', 'type' => 'int', 'length' => 11, 'required' => true, 'entity' => true), 'create_by' => array('alias' => '操作用户id', 'type' => 'int', 'length' => 11, 'required' => true, 'entity' => true)));
     parent::__construct($data);
 }
Example #16
0
					</td>
				</tr>
			</tbody>
		</table>
	</form>
	<style>
		.field-produce_finish_date {display:none;}
	</style>
	<script>
		seajs.use('jquery', function($){
			var SAMPLE_PRODUCE_TYPE_ORDER = '<?php 
echo SampleProduceOrder::TYPE_ORDER;
?>
';
			var CUSTOMER_LIST = <?php 
echo json_encode(array_group(Model::convertObjectListToArray($customer_list), 'id', true));
?>
;
			var ALL_CONTACT_LIST = <?php 
echo json_encode($all_contact_list);
?>
;
			var $CUS_SEL = $('[name=customer_id]');
			var $CONT_SEL = $('[name=contact_id]');

			$CUS_SEL.change(function(){
				$CONT_SEL[0].options.length = 0;
				$('#address').html('-');
				if(this.value){
					var contact_list = ALL_CONTACT_LIST[this.value];
					var CURRENT_CUS = CUSTOMER_LIST[this.value];
Example #17
0
 public function __construct($data = array())
 {
     $this->setPropertiesDefine(array('id' => array('alias' => 'id', 'type' => 'int', 'length' => 10, 'primary' => true, 'required' => true, 'readonly' => true, 'entity' => true), 'store_id' => array('alias' => '仓库', 'type' => 'int', 'length' => 10, 'required' => true, 'min' => 0, 'entity' => true), 'goods_no' => array('alias' => '货号', 'type' => 'string', 'length' => 50, 'required' => true, 'entity' => true), 'goods_num' => array('alias' => '数量', 'type' => 'int', 'length' => 10, 'required' => true, 'min' => 0, 'entity' => true), 'confirm_num' => array('alias' => '确认数量', 'type' => 'int', 'length' => 10, 'required' => true, 'entity' => true), 'operate_type' => array('alias' => '操作', 'type' => 'enum', 'required' => true, 'options' => array('1' => '进仓', '2' => '出仓'), 'entity' => true), 'create_time' => array('alias' => '记录时间', 'type' => 'timestamp', 'length' => 0, 'readonly' => true, 'default' => time(), 'entity' => true)));
     parent::__construct($data);
 }
Example #18
0
 public function __construct($data = array())
 {
     $this->setPropertiesDefine(array('id' => array('alias' => '主键', 'type' => 'int', 'length' => 11, 'primary' => true, 'required' => true, 'readonly' => true, 'entity' => true), 'business_order_id' => array('alias' => '订单id', 'type' => 'int', 'length' => 11, 'required' => true, 'entity' => true), 'note_content' => array('alias' => '便签内容', 'type' => 'text', 'length' => 0, 'required' => true, 'entity' => true), 'update_time' => array('alias' => '更新时间', 'type' => 'timestamp', 'length' => 0, 'readonly' => true, 'default' => time(), 'entity' => true), 'create_time' => array('alias' => '创建时间', 'type' => 'timestamp', 'length' => 0, 'readonly' => true, 'default' => time(), 'entity' => true)));
     parent::__construct($data);
 }
 public function __construct($data = array())
 {
     $this->setPropertiesDefine(array('id' => array('alias' => 'id', 'type' => 'int', 'length' => 10, 'primary' => true, 'required' => true, 'readonly' => true, 'entity' => true), 'produce_order_id' => array('alias' => '生产单ID', 'type' => 'int', 'length' => 10, 'required' => true, 'entity' => true), 'customer_name' => array('alias' => '客户名称', 'type' => 'string', 'length' => 50, 'required' => true, 'entity' => true), 'address' => array('alias' => '邮寄地址', 'type' => 'text', 'length' => 0, 'required' => true, 'entity' => true), 'contact' => array('alias' => '联系人', 'type' => 'string', 'length' => 50, 'required' => true, 'entity' => true), 'phone' => array('alias' => '电话', 'type' => 'string', 'length' => 50, 'required' => true, 'entity' => true), 'deliver_date' => array('alias' => '邮寄时间', 'type' => 'date', 'length' => 0, 'required' => true, 'entity' => true), 'logistics_company' => array('alias' => '物流公司', 'type' => 'int', 'length' => 10, 'default' => 0, 'entity' => true), 'logistics_no' => array('alias' => '物流单号', 'type' => 'string', 'length' => 50, 'required' => true, 'entity' => true), 'fee_type' => array('alias' => '费用类型', 'type' => 'enum', 'default' => 1, 'options' => array('1' => '寄方付', '2' => '收方付'), 'entity' => true), 'fee' => array('alias' => '物流费用', 'type' => 'double', 'length' => 10, 'precision' => 2, 'description' => '元', 'default' => 0.0, 'entity' => true), 'fee_currency_id' => array('alias' => '货币', 'type' => 'int', 'length' => 10, 'required' => true, 'entity' => true), 'update_time' => array('alias' => '更新时间', 'type' => 'timestamp', 'length' => 0, 'readonly' => true, 'default' => '0000-00-00 00:00:00', 'entity' => true), 'create_time' => array('alias' => '创建时间', 'type' => 'timestamp', 'length' => 0, 'readonly' => true, 'default' => time(), 'entity' => true)));
     parent::__construct($data);
 }
Example #20
0
 public function __construct($data = array())
 {
     $this->setPropertiesDefine(array('id' => array('alias' => '模具ID', 'type' => 'int', 'length' => 11, 'primary' => true, 'required' => true, 'readonly' => true, 'entity' => true), 'sample_id' => array('alias' => 'sku_id', 'type' => 'int', 'length' => 11, 'required' => true, 'entity' => true), 'sample_mould_category_id' => array('alias' => '模具分类', 'type' => 'int', 'length' => 10, 'required' => true, 'min' => 0, 'entity' => true), 'name' => array('alias' => '模具名称', 'type' => 'string', 'length' => 45, 'required' => true, 'entity' => true), 'weight' => array('alias' => '重量', 'type' => 'double', 'length' => 10, 'precision' => 2, 'min' => 0, 'default' => 0.0, 'entity' => true), 'mould_num' => array('alias' => '模具块数', 'type' => 'int', 'length' => 11, 'required' => true, 'min' => 0, 'entity' => true), 'product_num' => array('alias' => '产品数', 'type' => 'int', 'length' => 11, 'required' => true, 'min' => 0, 'entity' => true), 'freight_space' => array('alias' => '模具仓位', 'type' => 'string', 'length' => 50, 'default' => '', 'entity' => true)));
     parent::__construct($data);
 }
Example #21
0
 public function __construct($data = array())
 {
     $this->setPropertiesDefine(array('id' => array('alias' => 'id', 'type' => 'int', 'length' => 11, 'primary' => true, 'required' => true, 'entity' => true), 'contact_id' => array('alias' => 'contact_id', 'type' => 'string', 'length' => 45, 'required' => true, 'entity' => true), 'im_type' => array('alias' => 'im类型  QQ SKYPE MSN WECHAT', 'type' => 'string', 'length' => 45, 'default' => null, 'entity' => true), 'im_no' => array('alias' => 'Im 号码', 'type' => 'string', 'length' => 45, 'default' => null, 'entity' => true)));
     parent::__construct($data);
 }
Example #22
0
 public function __construct($data = array())
 {
     $this->setPropertiesDefine(array('id' => array('alias' => 'id', 'type' => 'int', 'length' => 10, 'primary' => true, 'required' => true, 'readonly' => true, 'min' => 0, 'entity' => true), 'address' => array('alias' => '地址', 'type' => 'text', 'length' => 0, 'required' => true, 'entity' => true), 'user' => array('alias' => '用户名', 'type' => 'string', 'length' => 50, 'required' => true, 'entity' => true), 'password' => array('alias' => '密码', 'type' => 'string', 'length' => 50, 'required' => true, 'entity' => true), 'update_time' => array('alias' => '更新时间', 'type' => 'timestamp', 'length' => 0, 'required' => true, 'readonly' => true, 'default' => '', 'entity' => true), 'create_time' => array('alias' => '创建时间', 'type' => 'timestamp', 'length' => 0, 'required' => true, 'readonly' => true, 'entity' => true)));
     parent::__construct($data);
 }
 public function __construct($data = array())
 {
     $this->setPropertiesDefine(array('id' => array('alias' => 'id', 'type' => 'int', 'length' => 11, 'primary' => true, 'required' => true, 'readonly' => true, 'entity' => true), 'business_order_id' => array('alias' => '订单ID', 'type' => 'int', 'length' => 11, 'required' => true, 'entity' => true), 'earnest_money' => array('alias' => '已付定金', 'type' => 'float', 'length' => 10, 'precision' => 2, 'description' => '元', 'default' => 0.0, 'entity' => true), 'receipt_date' => array('alias' => '收款日期', 'type' => 'date', 'length' => 0, 'default' => null, 'entity' => true), 'pay_type_id' => array('alias' => '支付方式', 'type' => 'int', 'length' => 11, 'default' => 0, 'entity' => true), 'append_file_url' => array('alias' => '附件', 'type' => 'string', 'length' => 200, 'default' => '', 'entity' => true), 'delivery_date' => array('alias' => '交货日期', 'type' => 'date', 'length' => 0, 'required' => true, 'entity' => true), 'desc' => array('alias' => '备注', 'type' => 'text', 'length' => 0, 'required' => true, 'entity' => true), 'create_time' => array('alias' => '创建时间', 'type' => 'timestamp', 'length' => 0, 'readonly' => true, 'default' => time(), 'entity' => true)));
     parent::__construct($data);
 }
Example #24
0
 public function __construct($data = array())
 {
     $this->setPropertiesDefine(array('id' => array('alias' => 'id', 'type' => 'int', 'length' => 10, 'primary' => true, 'required' => true, 'readonly' => true, 'min' => 0, 'entity' => true), 'name' => array('alias' => '名称', 'type' => 'string', 'length' => 50, 'required' => true, 'entity' => true), 'description' => array('alias' => '描述', 'type' => 'text', 'length' => 0, 'required' => true, 'entity' => true), 'state' => array('alias' => '状态', 'type' => 'enum', 'default' => 0, 'options' => array('0' => '禁用', '1' => '启用'), 'entity' => true)));
     parent::__construct($data);
 }
 public function __construct($data = array())
 {
     $this->setPropertiesDefine(array('id' => array('alias' => 'id', 'type' => 'int', 'length' => 11, 'primary' => true, 'required' => true, 'readonly' => true, 'entity' => true), 'suite_sample_id' => array('alias' => 'suite_sample_id', 'type' => 'int', 'length' => 11, 'required' => true, 'entity' => true), 'single_sample_id' => array('alias' => 'single_sample_id', 'type' => 'int', 'length' => 11, 'required' => true, 'entity' => true)));
     parent::__construct($data);
 }
Example #26
0
 public function __construct($data = array())
 {
     $this->setPropertiesDefine(array('id' => array('alias' => '包装方式', 'type' => 'int', 'length' => 11, 'primary' => true, 'required' => true, 'readonly' => true, 'entity' => true), 'sample_id' => array('alias' => '样品ID', 'type' => 'int', 'length' => 11, 'required' => true, 'entity' => true), 'pack_name' => array('alias' => '包装名称', 'type' => 'string', 'length' => 200, 'default' => '', 'entity' => true), 'pack_desc' => array('alias' => '包装说明', 'type' => 'text', 'length' => 0, 'default' => null, 'entity' => true), 'inner_box_length' => array('alias' => '内盒长', 'type' => 'float', 'length' => 0, 'min' => 0, 'default' => 0, 'entity' => true), 'inner_box_width' => array('alias' => '内盒宽', 'type' => 'float', 'length' => 0, 'min' => 0, 'default' => 0, 'entity' => true), 'inner_box_height' => array('alias' => '内盒高', 'type' => 'float', 'length' => 0, 'min' => 0, 'default' => 0, 'entity' => true), 'inner_box_material_type' => array('alias' => '内盒材质', 'type' => 'enum', 'default' => 1, 'options' => array('1' => '白盒', '2' => '单瓦', '3' => '双瓦'), 'entity' => true), 'inner_box_clapboard_material_type' => array('alias' => '内盒隔板材质', 'type' => 'enum', 'default' => 1, 'options' => array('1' => '白盒', '2' => '单瓦', '3' => '双瓦'), 'entity' => true), 'inner_box_clapboard_transverse_num' => array('alias' => '内盒隔板横向数量', 'type' => 'int', 'length' => 11, 'min' => 0, 'default' => 0, 'entity' => true), 'inner_box_clapboard_vertical_num' => array('alias' => '内盒隔板竖向数量', 'type' => 'int', 'length' => 11, 'min' => 0, 'default' => 0, 'entity' => true), 'outer_box_length' => array('alias' => '外盒长', 'type' => 'float', 'length' => 0, 'min' => 0, 'default' => 0, 'entity' => true), 'outer_box_width' => array('alias' => '外盒宽', 'type' => 'float', 'length' => 0, 'min' => 0, 'default' => 0, 'entity' => true), 'outer_box_height' => array('alias' => '外盒高', 'type' => 'float', 'length' => 0, 'min' => 0, 'default' => 0, 'entity' => true), 'pack_percent' => array('alias' => '包装率', 'type' => 'float', 'length' => 0, 'min' => 0, 'default' => 0, 'entity' => true), 'weight' => array('alias' => '净重', 'type' => 'float', 'length' => 0, 'min' => 0, 'default' => 0, 'entity' => true), 'outer_box_place_left_right' => array('alias' => '外盒摆放左右', 'type' => 'int', 'length' => 11, 'min' => 0, 'default' => 0, 'entity' => true), 'outer_box_place_front_back' => array('alias' => '外箱摆放前后', 'type' => 'int', 'length' => 11, 'min' => 0, 'default' => 0, 'entity' => true), 'outer_box_place_up_down' => array('alias' => '外箱摆放上下', 'type' => 'int', 'length' => 11, 'min' => 0, 'default' => 0, 'entity' => true), 'outer_box_material_type' => array('alias' => '外盒材质', 'type' => 'enum', 'default' => 1, 'options' => array('1' => '白盒', '2' => '单瓦', '3' => '双瓦'), 'entity' => true)));
     parent::__construct($data);
 }
Example #27
0
 public function __construct($data = array())
 {
     $this->setPropertiesDefine(array('id' => array('alias' => 'id', 'type' => 'int', 'length' => 11, 'primary' => true, 'required' => true, 'readonly' => true, 'entity' => true), 'customer_id' => array('alias' => '客户id', 'type' => 'int', 'length' => 11, 'required' => true, 'min' => 0, 'entity' => true), 'chinese_name' => array('alias' => '中文名', 'type' => 'string', 'length' => 45, 'default' => null, 'entity' => true), 'english_name' => array('alias' => '英文名', 'type' => 'string', 'length' => 45, 'default' => null, 'entity' => true), 'birthday' => array('alias' => '生日', 'type' => 'date', 'length' => 0, 'default' => '0000-00-00', 'entity' => true), 'office_position' => array('alias' => '职位', 'type' => 'string', 'length' => 45, 'default' => null, 'entity' => true), 'mobile' => array('alias' => '手机', 'type' => 'string', 'length' => 45, 'default' => null, 'entity' => true), 'tel' => array('alias' => '电话', 'type' => 'string', 'length' => 45, 'default' => null, 'entity' => true), 'email' => array('alias' => '邮箱', 'type' => 'string', 'length' => 45, 'default' => null, 'entity' => true), 'desc' => array('alias' => '备注', 'type' => 'text', 'length' => 0, 'default' => null, 'entity' => true)));
     parent::__construct($data);
 }
Example #28
0
 public function __construct($data = array())
 {
     $this->setPropertiesDefine(array('id' => array('alias' => 'id', 'type' => 'int', 'length' => 11, 'primary' => true, 'required' => true, 'readonly' => true, 'entity' => true), 'sample_id' => array('alias' => '样品ID', 'type' => 'int', 'length' => 10, 'required' => true, 'min' => 0, 'entity' => true), 'length' => array('alias' => '长', 'type' => 'double', 'length' => 10, 'precision' => 2, 'min' => 0, 'default' => 0.0, 'entity' => true), 'width' => array('alias' => '宽', 'type' => 'double', 'length' => 10, 'precision' => 2, 'min' => 0, 'default' => 0.0, 'entity' => true), 'height' => array('alias' => '高', 'type' => 'double', 'length' => 10, 'precision' => 2, 'min' => 0, 'default' => 0.0, 'entity' => true), 'volume' => array('alias' => '容积', 'type' => 'double', 'length' => 10, 'precision' => 2, 'min' => 0, 'default' => 0.0, 'entity' => true), 'weight' => array('alias' => '重量', 'type' => 'double', 'length' => 10, 'precision' => 2, 'min' => 0, 'default' => 0.0, 'entity' => true), 'technic_flow_id_list' => array('alias' => '工艺流程', 'type' => 'set', 'default' => null, 'options' => array('1' => '模具', '2' => '成型', '3' => '素烧', '4' => '釉下工艺', '5' => '釉烧', '6' => '釉上工艺', '7' => '烘烤', '8' => '包装'), 'entity' => true)));
     parent::__construct($data);
 }
Example #29
0
 public function __construct($data = array())
 {
     $this->setPropertiesDefine(array('id' => array('alias' => '样品借出记录ID', 'type' => 'int', 'length' => 11, 'primary' => true, 'required' => true, 'readonly' => true, 'entity' => true), 'sample_id' => array('alias' => '样品id', 'type' => 'int', 'length' => 11, 'required' => true, 'entity' => true), 'apply_user_id' => array('alias' => '申请人id', 'type' => 'int', 'length' => 11, 'required' => true, 'entity' => true), 'create_time' => array('alias' => '申请时间', 'type' => 'int', 'length' => 11, 'required' => true, 'entity' => true), 'desc' => array('alias' => '备注说明', 'type' => 'text', 'length' => 0, 'default' => null, 'entity' => true)));
     parent::__construct($data);
 }
Example #30
0
 public function __construct($data = array())
 {
     $this->setPropertiesDefine(array('id' => array('alias' => 'id', 'type' => 'int', 'length' => 11, 'primary' => true, 'required' => true, 'readonly' => true, 'entity' => true), 'name' => array('alias' => '部门名称', 'type' => 'string', 'length' => 45, 'required' => true, 'entity' => true), 'parent_id' => array('alias' => '上级部门ID', 'type' => 'int', 'length' => 11, 'default' => 0, 'entity' => true), 'manager_id' => array('alias' => '部门负责人id', 'type' => 'int', 'length' => 11, 'default' => 0, 'entity' => true), 'stage_id' => array('alias' => '负责流程', 'type' => 'int', 'length' => 2, 'default' => 0, 'entity' => true), 'description' => array('alias' => '描述', 'type' => 'text', 'length' => 0, 'default' => null, 'entity' => true), 'state' => array('alias' => '状态', 'type' => 'enum', 'default' => 0, 'options' => array('0' => '禁用', '1' => '启用'), 'entity' => true)));
     parent::__construct($data);
 }