* code for task #7644.

This commit is contained in:
z
2020-08-21 11:04:41 +08:00
parent 20d3cab272
commit 463a7c24a8
3 changed files with 8 additions and 14 deletions
+1
View File
@@ -48,6 +48,7 @@ $lang->program->privway = '权限控制';
$lang->program->durationEstimation = '工作量估算';
$lang->program->progress = '项目进度';
$lang->program->children = '子项目';
$lang->program->parent = '父项目';
$lang->program->unitList[''] = '';
$lang->program->unitList['yuan'] = '元';
-13
View File
@@ -132,19 +132,6 @@ class programModel extends model
$productID = $this->dao->lastInsertId();
$this->dao->update(TABLE_PRODUCT)->set('`order`')->eq($productID * 5)->where('id')->eq($productID)->exec();
/* Create doc lib. */
$this->app->loadLang('doc');
$lib = new stdclass();
$lib->product = $productID;
$lib->name = $this->lang->doclib->main['product'];
$lib->type = 'product';
$lib->main = '1';
$lib->acl = 'default';
$this->dao->insert(TABLE_DOCLIB)->data($lib)->exec();
$docLibID = $this->dao->lastInsertId();
$this->loadModel('doc')->syncDocModule($docLibID);
$data = new stdclass();
$data->project = $programID;
$data->product = $productID;
+7 -1
View File
@@ -51,7 +51,13 @@
<tr>
<th><?php echo $lang->program->name;?></th>
<td class="col-main"><?php echo html::input('name', $name, "class='form-control' required");?></td>
<td></td><td></td>
<td>
<div class="checkbox-primary">
<input type="checkbox" name="isCat" value="1" id="isCat">
<label for="isCat"><?php echo $lang->program->parent;?></label>
</div>
</td>
<td></td>
</tr>
<tr>
<th><?php echo $lang->program->code;?></th>