abp(net core)+easyui+efcore实现仓储管理系统——入库管理之九(四十五)

在经过前面八篇文章(abp(net core)+easyui+efcore实现仓储管理系统——入库管理之一(三十七) abp(net core)+easyui+efcore实现仓储管理系统——入库管理之八(四十四) )的学习之后,我们知道了已经基本完成了入库管理功能。在这篇文章中我们来增加更新与删除功能的脚本。

修改更新与删除脚本

    1. 在Visual Studio 2017的“解决方案资源管理器”中,找到领域层“ABP.TPLMS.Web.Mvc”项目中的wwwroot目录下的view-resources\Views\InStock目录中的找到Index.js文件。如下图。

    2. 在Index.js文件中,写入相应的脚本代码。代码如下:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

70

71

72

73

74

75

76

77

78

79

80

81

82

83

84

85

86

87

88

89

90

91

92

93

94

95

96

97

98

99

100

101

102

103

104

105

106

107

108

109

110

111

112

113

114

115

116

117

118

119

120

121

122

123

124

125

126

127

128

129

130

131

132

133

134

135

136

137

138

139

140

141

142

143

144

145

146

147

148

149

150

151

152

153

154

155

156

157

158

159

160

161

162

163

164

165

166

167

168

169

170

171

172

173

174

175

176

177

178

179

180

181

182

183

184

185

186

187

188

189

190

191

192

193

194

195

196

197

198

199

200

201

202

203

204

205

206

207

208

209

210

211

212

213

214

215

216

217

218

219

220

221

222

223

224

225

226

227

228

229

230

231

232

233

234

235

236

237

238

239

240

241

242

243

244

245

246

247

248

249

250

251

252

253

254

255

256

257

258

259

260

261

262

263

264

265

266

267

268

269

270

271

272

273

274

275

276

277

278

279

280

281

282

283

284

285

286

287

288

289

290

291

292

293

294

295

296

297

298

299

300

301

302

303

304

305

306

307

308

309

310

311

312

313

314

315

316

317

318

319

320

321

322

323

324

325

326

327

328

329

330

331

332

333

334

335

336

337

338

339

340

341

342

343

344

345

346

347

348

349

350

351

352

353

354

355

356

357

358

359

360

361

362

363

364

365

366

367

368

369

370

371

372

373

374

375

376

377

378

379

380

381

382

383

384

385

386

387

388

389

390

391

392

393

394

395

396

397

398

399

400

401

402

403

404

405

406

407

408

409

410

411

412

413

414

415

416

417

418

419

420

421

422

423

424

425

426

427

428

429

430

431

432

433

434

435

436

437

438

439

440

441

442

443

444

445

446

447

448

449

450

451

452

453

454

455

456

457

458

459

460

461

462

463

464

465

466

467

468

469

470

471

472

473

474

475

476

477

478

479

480

481

482

483

484

485

486

487

488

489

490

491

492

493

494

495

496

497

498

499

500

501

502

503

504

505

506

507

508

509

510

511

512

513

514

515

516

517

518

519

520

521

522

523

524

525

526

527

528

529

530

531

532

533

534

535

536

537

538

539

540

541

542

543

544

545

546

547

548

549

550

551

552

553

554

555

556

557

558

559

560

561

562

563

564

565

566

567

568

569

570

571

572

573

574

575

576

577

578

579

580

581

582

583

584

585

586

587

588

589

590

591

592

593

594

595

596

597

598

599

600

601

602

603

604

605

606

607

608

609

610

611

612

613

614

615

616

617

618

619

620

621

622

623

624

625

626

627

628

629

630

631

632

633

634

635

636

637

638

639

640

641

642

643

644

645

646

647

648

649

650

651

652

653

654

655

656

657

658

659

660

661

662

663

664

665

666

667

668

669

670

671

672

673

674

675

676

677

678

679

680

681

682

683

684

685

686

687

688

689

690

691

692

693

694

695

696

697

698

699

700

701

702

703

704

705

706

707

708

709

710

711

712

713

714

715

716

717

718

719

720

721

722

723

724

725

726

727

728

729

730

731

732

733

734

735

736

737

738

739

740

//-----------------------系统管理-->入库单管理----------------------//

var editIndex = undefined;

var mainIndex = undefined;

//刷新数据

function initable() {

    $("#dgINSO").datagrid({

        url: "/InStock/List",

        title: "入库单管理",

        pagination: true,

        pageSize: 10,

        pageList: [10, 20, 30],

        fit: true,

        fitColumns: false,

        loadMsg: "正在加载入库单信息...",

        nowarp: false,

        border: false,

        idField: "Id",

        sortName: "Id",

        sortOrder: "asc",

        frozenColumns: [[//冻结列

            { field: "ck", checkbox: true, align: "left", width: 50 }        

        ]],

        columns: [[

            { title: "编号", field: "Id", width: 50, sortable: true },

            { title: "入库单号", field: "No", width: 100, sortable: true },         

            {title: "状态", field: "Status", width: 50            },

            { title: '到货日期', field: 'ReceiveTime',  width: 100, align: 'center' },

            { title: "货主", field: "OwnerCode", width: 150, sortable: true },

            { title: "预计到货时间", field: "PreDeliveryTime", width: 100, sortable: false },

            { title: '客户', field: 'CustomerName', width: 120, align: 'center' },

            { title: '收货人',field: 'Oper', width: 100, align: 'center' },

            { title: '审核人',field: 'Checker', width: 120, align: 'center' },

            { title: '件数', field: 'PackageQty', width: 100, align: 'center' },

           { title: '创建时间', field: 'CreationTime', width: 100, align: 'center' }

        ]]

    });

}

  

//显示送货单数据

function ShowCargo() {

    abp.log.warn('货物信息列表日志...');

    $("#dgCargo").datagrid({

       url: "/Cargo/List",

        title: "货物管理管理",

        pagination: true,

        pageSize: 10,

        pageList: [10, 20, 30],

        fit: true,

        fitColumns: false,

        loadMsg: "正在加载货物信息...",

        nowarp: false,

        border: false,

        idField: "Id",

        sortName: "Id",

        sortOrder: "asc",

        frozenColumns: [[//冻结列

            { field: "ck", checkbox: true, align: "left", width: 50 }

        ]],

        columns: [[

            { title: "编号", field: "Id", width: 50, sortable: true },

            { title: "供应商", field: "SupplierId", width: 80, sortable: true },

            { title: "HSCode", field: "HSCode", width: 100, sortable: true },

            { title: "货物代码", field: "CargoCode", width: 100, sortable: true },

            { title: "货物名称", field: "CargoName", width: 80, sortable: false },

            { title: "规格型号", field: "Spcf", width: 100, sortable: false },

            { title: "产销国", field: "Country", width: 80, sortable: false },

            { title: "计量单位", field: "Unit", width: 100, sortable: false },

            { title: "包装", field: "Package", width: 100, sortable: false },

            { title: "单价", field: "Price", width: 100, sortable: false },

            { title: "币制", field: "Curr", width: 80, sortable: false },

            {

                title: "长宽高", field: "Length", width: 100, sortable: false, formatter: function (value, row, index) {

                    return row.Length + '*' + row.Width + '*' + row.Height;

                }

            },

            { title: "体积", field: "Vol", width: 80, sortable: false },

            { title: "备注", field: "Remark", width: 80, sortable: false },

            { title: '创建时间', field: 'CreationTime', width: 100, align: 'center' }

        ]]      

    });

    abp.log.warn('3货物信息列表日志...');

}

  

function ShowCargoInfo() {

    $("#divImportCargo").dialog({

            closed: false,

            title: "选择货物信息",

            modal: true,

            width: 820,

            height: 550,

            collapsible: true,

            minimizable: true,

            maximizable: true,

            resizable: true

        });

       ShowCargo();

       $("#dgCargo").datagrid("clearChecked");

       $("#dgCargo").datagrid("clearSelections");

}

  

function reloaded() {   //reload

    $("#reload").click(function () {

        //

        $('#dgINSO').datagrid('reload');

    });}

  

//修改点击按钮事件

function updInSOInfo() {   

    $("#edit").click(function () {      

        //判断选择的中

        var row = $("#dgINSO").datagrid('getSelected');      

        if (row) {     

            $.messager.confirm('编辑''您想要编辑吗?'function (r) {

                if (r) {                 

                    //先绑定                   

                    showINO(row);                 

                     //打开对话框编辑

                    $("#divAddUpdINO").dialog({

                        closed: false,

                        title: "修改入库单",

                        modal: true,

                        width: 820,

                        height: 550,

                        collapsible: true,

                        minimizable: true,

                        maximizable: true,

                        resizable: true,

                    });   

                    defaultTab();

                    ShowDetail(row.No);

                }             

            });

            SetEnabled(row.Status);

        else {

            $.messager.alert('提示'' 请选择要编辑的行!''warning');

        }

    }); 

}

//删除入库单

function deleteInSO() {

    $("#del").click(function () {

        var rows = $("#dgINSO").datagrid("getSelections");

        if (rows.length > 0) {

            $.messager.confirm("提示""确定要删除吗?"function (res) {

                if (res) {

                    var codes = []; //重要不是{}

                    for (var i = 0; i < rows.length; i++) {

                        codes.push(rows[i].Id);

                    }

                    $.post("/InStock/Delete", { "ids": codes.join(',') }, function (data) {

                        if (data == "OK") {

                            $.messager.alert("提示""删除成功!");

                            $("#dgINSO").datagrid("clearChecked");

                            $("#dgINSO").datagrid("clearSelections");

                            $("#dgINSO").datagrid("load", {});

                        }                      

                        else if (data == "NO") {

                            $.messager.alert("提示""删除失败!");

                            return;

                        }

                    });

                }

            });

        }

    })

}

//清空文本框

function clearAll() {   

    $("#divAddUpdINO input").each(function () {

            $(this).val("");

        });

    $("#PreDeliveryTimeUpdate").val(getNowFormatDate());   

    $("#StatusUpdate").val("0");

    $("#NwtUpdate").val("0");

    $("#GwtUpdate").val("0");

    $("#PackageQtyUpdate").val("0");  

}

function GetNo() {

    $.get(abp.appPath + "api/services/app/InStockOrder/GetNo"function (data) {

        $("#UpdNO").val(data);

    });

}

//获取当前时间,格式YYYY-MM-DD

function getNowFormatDate() {

    var date = new Date();

    var seperator1 = "-";

    var year = date.getFullYear();

    var month = date.getMonth() + 1;

    var strDate = date.getDate();

    if (month >= 1 && month <= 9) {

        month = "0" + month;

    }

    if (strDate >= 0 && strDate <= 9) {

        strDate = "0" + strDate;

    }

    var currentdate = year + seperator1 + month + seperator1 + strDate;

    return currentdate;

}

  

//将表单数据转为json

function form2Json(id) {

    var arr = $("#" + id).serializeArray()

    var jsonStr = "";

    jsonStr += '{';

    for (var i = 0; i < arr.length; i++) {

        jsonStr += '"' + arr[i].name + '":"' + arr[i].value + '",'

    }

    jsonStr = jsonStr.substring(0, (jsonStr.length - 1));

    jsonStr += '}'

    var json = JSON.parse(jsonStr)

    return json

}

  

function SetEnabled(status) {

    //var status = $("#StatusUpdate").val()

    if (status == "提交") {

        $("#btnSave").prop('disabled'true);

    }

    else {

        $("#btnSave").removeAttr("disabled");

    }

}

  

function defaultTab() {

    //默认显示第一个tab

    $('#box').tabs('select'"入库单");

}

//弹出 导入送货单的的对话框

function showInSODialog() {

    $("#add").click(function () {  

            $.messager.confirm('编辑''您想要创建入库单吗?'function (r) {

                if (r) {

                    //打开对话框编辑

                    $("#divAddUpdINO").dialog({

                        closed: false,

                        title: "新增入库单",

                        modal: true,

                        width: 820,

                        height: 550,

                        collapsible: true,

                        minimizable: true,

                        maximizable: true,

                        resizable: true,

                    });                   

                }

                defaultTab();

                GetNo();

                clearAll();

                ShowDetail("");

            });      

    });

  

    $("#btnSave").click(function () {     

        //保存

        var id = $("#IDUpdate").val();

        if (id == "" || id == undefined) {

            //验证

            $.messager.confirm('确认''您确认要保存吗?'function (r) {

                if (r) {                

                    var postData = GetINO();                  

                    if (postData.No == "" || postData.CustomerCode == "" || postData.CustomerName=="" || postData.OwnerName=="") {

                        $.messager.alert('提示'' 请填写相关必填项!''warning');

                        return;

                    }

                    

                    $.post("/InStock/Add", postData, function (data) {

                        if (data == "OK") {

                           // $("#divAddUpdDO").dialog("close");

                            $.messager.alert("提示""保存成功!");

                            initable();

                            collapseRows();

                        }

                        else if (data == "NO") {

                            $.messager.alert("提示""保存失败!");

                            return;

                        }

                    });

                }

            })

        }

        else {

            saveDetail();

            initable();

            collapseRows();

        }

});

}

  

//添加明细

function ShowDetail(no) {

    var lastIndex;

    $("#dgINOD").datagrid({

        url: "/InStock/GetDetail?no=" + no,

        title: "入库单明细",

        pagination: false,     

        fit: true,

        fitColumns: false,

        loadMsg: "正在加载入库单明细信息...",

        toolbar: [

            { text: '添加明细', iconCls: 'icon-add', handler: function () { ShowCargoInfo(); } },

            { text: '添加库位', iconCls: 'icon-edit', handler: function () { SubGridAddRow(); } },

            { text: '删除', iconCls: 'icon-remove', handler: function () { deviceInfoDeleteClick(); } },

            '-'

        ],

        nowarp: false,

        border: false,

        idField: "Id",

        sortName: "Id",

        sortOrder: "asc",

        singleSelect: true,

        iconCls: 'icon-edit',     

        columns: [[

            { title: "编号", field: "SeqNo", width: 50, sortable: true },

            { title: "入库单号", field: "InStockNo", width: 100, sortable: true },

            { title: "HSCode", field: "HSCode", width: 80, sortable: false },

            { title: "货物代码", field: "CargoCode", width: 100, sortable: true },

            { title: "货物名称", field: "CargoName", width: 160, sortable: false },

            { title: "规格型号", field: "Spcf", width: 80, sortable: false },

            {

                title: "数量", field: "Qty", width: 100, align: 'center', editor: {

                    type: 'numberbox', options: {

                        required: true, min: 0, precision: 4

                    }

                }

            },

            {

                title: "长", field: "Length", width: 70, align: 'center', editor: {

                    type: 'numberbox', options: {

                        required: true, min: 0, precision: 2

                    }

                }

            },

            {    title: "宽", field: "Width", width: 70, align: 'center', editor: {

                    type: 'numberbox', options: {

                        required: true, min: 0, precision: 2

                    }

                }

            },

            {

                title: "高", field: "Height", width: 70, align: 'center', editor: {

                    type: 'numberbox', options: {

                        required: true, min: 0, precision: 2

                    }

                }

            },

            { title: "产销国", field: "Country", width: 70, align: 'center' },

            {

                title: "单价", field: "Price", width: 100, align: 'center', editor: {

                    type: 'numberbox', options: {

                        required: true, min: 0, precision: 2

                    }

                }

            },       

            {

                title: "总价", field: "TotalAmt", width: 100, align: 'center', editor: {

                    type: 'numberbox', options: {

                        required: true, min: 0, precision: 2

                    }

                }

            },

            { title: "包装", field: "Package", width: 70, align: 'center' },

            { title: "计量单位", field: "Unit", width: 70, align: 'center' },

            {

                title: "总体积", field: "Vol", width: 70, align: 'center', editor: {

                    type: 'numberbox', options: {

                        required: true, min: 0, precision: 4

                    }

                }

            },

            { title: "品牌", field: "Brand", width: 70, align: 'center' }

        ]],

         onClickRow: function (index, rowData) {

            if (mainIndex!=undefined) {

                $('#dgINOD').datagrid('collapseRow', mainIndex);

            }

            

            if (lastIndex != index) {

                $('#dgINOD').datagrid('endEdit', lastIndex);

                editrow(index);

            }

            lastIndex = index;         

        },

         

        onBeginEdit: function (rowIndex, rowData) { 

            setEditing(rowIndex);

        }

    });

}

//计算报价小计

function setEditing(rowIndex) {

    var editors = $('#dgINOD').datagrid('getEditors', rowIndex);

    var priceEditor = editors[4];

    var qtyEditor = editors[0];

    var lengthEditor = editors[1];

    var widthEditor = editors[2];

    var heightEditor = editors[3];

    var totalVolEditor = editors[6];

    var totalAmtEditor = editors[5];

    priceEditor.target.numberbox({

        onChange: function () { calculate();}

    });

    qtyEditor.target.numberbox({

        onChange: function () {

            calculate();

            calculateVol();

        }

    });

    lengthEditor.target.numberbox({

        onChange: function () { calculateVol(); }

    });

    widthEditor.target.numberbox({

        onChange: function () { calculateVol(); }

    });

    heightEditor.target.numberbox({

        onChange: function () { calculateVol(); }

    });

    function calculate() {

        var cost = (priceEditor.target.val()) * (qtyEditor.target.val());

        console.log(cost);

        totalAmtEditor.target.numberbox("setValue", cost);

    }

    function calculateVol() {

        var vol = (lengthEditor.target.val() / 100.0) * (widthEditor.target.val() / 100.0)<br> * (heightEditor.target.val() / 100.0)* (qtyEditor.target.val());

        console.log(vol);

        totalVolEditor.target.numberbox("setValue", vol);

    }

}

function editrow(index) {

    $('#dgINOD').datagrid('selectRow', index)

        .datagrid('beginEdit', index);

}

function endEdit() {

    var rows = $('#dgINOD').datagrid('getRows');

    if (rows==undefined) {

        return;

    }

    for (var i = 0; i < rows.length; i++) {

        $('#dgINOD').datagrid('endEdit', i);

    }

}

//设置入库单明细数据

function setGridDetail(effectRow) {

    if ($('#dgINOD').datagrid('getChanges').length) {

        var inserted = $('#dgINOD').datagrid('getChanges'"inserted");

        var deleted = $('#dgINOD').datagrid('getChanges'"deleted");

        var updated = $('#dgINOD').datagrid('getChanges'"updated");       

        if (inserted.length) {

            effectRow["inserted"] = JSON.stringify(inserted);

        }

        if (deleted.length) {

            effectRow["deleted"] = JSON.stringify(deleted);

        }

        if (updated.length) {

            effectRow["updated"] = JSON.stringify(updated);

        }

     }

    return effectRow;

}

function saveDetail() {

    endEdit();

    $.messager.confirm('确认''您确认要修改吗?'function (r) {

        var effectRow = new Object();

        var postData = GetINO();

        if (postData.Id) {

            effectRow["postdata"] = JSON.stringify(postData);

        }

        effectRow = setGridDetail(effectRow);

        $.post("/InStock/Update", effectRow, function (data) {

            if (data.success) {

                $.messager.alert("提示", data.result);

                $('#dgINOD').datagrid('acceptChanges');        

            }

            else {

                $.messager.alert("提示", data.result);

                return;

            }

        }, "JSON")

            ;      

        })   

}

function init() {

    $("#PreDeliveryTimeUpdate").val(getNowFormatDate());

    $("#CreationTimeUpdate").val(getNowFormatDate());

    $("#btnCancle").click(function () {      

        $("#divAddUpdINO").dialog("close");  

        $('#dgINSO').datagrid('reload');

    });

    $("#btnCancleDO").click(function () {

        $("#divImportCargo").dialog("close");

        $('#dgINSO').datagrid('reload');

    });

  

    $("#btnImportDO").click(function () {

        //保存

        var rows = $('#dgCargo').datagrid('getSelections');

        if (rows.length > 0) {

            //验证

            $.messager.confirm('确认''您确认要保存所选择的货物信息吗?'function (r) {

                if (r) {

                    var obj_No = $("#UpdNO").val();

                    var ids = [];//重要不是{}

                    for (var i = 0; i < rows.length; i++) {

                        ids.push(rows[i].Id);

                    }

                    var postData = {

                        "Ids": ids.join(','),

                        "No": obj_No

                    };

                     $.post("/InStock/ImportCargo", postData, function (data) {

                        if (data == "OK") {

                            $.messager.alert("提示""保存货物信息成功!");

                            ShowDetail(obj_No);

                        }

                        else if (data == "NO") {

                            $.messager.alert("提示""保存货物信息失败!");

                            return;

                        }

                    });

                }

            })

        }

    });

  

    $("#btnSubmit").click(function () {

        //保存

        var id = $("#IDUpdate").val();

        if (id == "" || id == undefined) {

            $.messager.alert("提示""入库单没有保存,请先保存!");

            return;

        }

            //验证

            $.messager.confirm('确认''您确认要提交入库单吗?'function (r) {

                if (r) {

                

                    var postData = {

                        "Id": id

                    };

                     $.post("/InStockMgr/Submit", postData, function (data) {

                        if (data == "OK") {

                            $.messager.alert("提示""入库单已经提交成功!");                          

                            $("#StatusUpdate").val("提交");

                            SetEnabled("提交");

                        }

                        else if (data == "NO") {

                            $.messager.alert("提示""入库单提交失败!");

                            return;

                        }

                    });

                }

            })

    });

}

  

function GetINO() {

    var postData = {

        "No": $("#UpdNO").val(),

        "DeliveryNo""",

        "PreDeliveryTime": $("#PreDeliveryTimeUpdate").val(),

        "CustomerCode": $("#CustomerCodeUpdate").val(),

        "OwnerName": $("#OwnerNameUpdate").val(),

        "OwnerCode": $("#OwnerCodeUpdate").val(),

        "CustomerName": $("#CustomerNameUpdate").val(),

        "CreationTime": $("#CreationTimeUpdate").val(),

        "CheckTime": $("#CheckTimeUpdate").val(),

        "WarehouseType": $("#WarehouseTypeUpdate").val(),

        "WarehouseNo": $("#WarehouseNoUpdate").val(),

        "Oper": $("#OperUpdate").val(),

        "Receiver": $("#ReceiverUpdate").val(),

        "Nwt": $("#NwtUpdate").val(),

        "Remark": $("#RemarkUpdate").val(),

        "ReceiveTime": $("#ReceiveTimeUpdate").val(),     

        "Status": $("#StatusUpdate").val(),

        "Gwt": $("#GwtUpdate").val(),

        "Checker": $("#CheckerUpdate").val(),

        "PackageQty": $("PackageQtyUpdate").val(),

        "LastUpdateTime""",

        "LastOper":""

    };

    var id = $("#IDUpdate").val();

    if (!(id=="" || id==undefined)) {

        postData.Id = id;

    }

    return postData;

}

  

function showINO(row)

     {

    $("#IDUpdate").val(row.Id);

    $("#UpdNO").val(row.No);

    $("#PreDeliveryTimeUpdate").val(row.PreDeliveryTime);

    $("#CustomerCodeUpdate").val(row.CustomerCode);

    

    $("#CustomerNameUpdate").val(row.CustomerName);

    $("#OwnerCodeUpdate").val(row.OwnerCode);

    $("#OwnerNameUpdate").val(row.OwnerName);

    $("#CreationTimeUpdate").val(row.CreationTime);

    $("#CheckTimeUpdate").val(row.CheckTime);

    $("#WarehouseTypeUpdate").val(row.WarehouseType);

    $("#WarehouseNoUpdate").val(row.WarehouseNo);

    $("#OperUpdate").val(row.Oper);

    $("#ReceiverUpdate").val(row.Receiver);

    $("#NwtUpdate").val(row.Nwt);

    $("#RemarkUpdate").val(row.Remark);

    $("#ReceiveTimeUpdate").val(row.ReceiveTime);

    $("#StatusUpdate").val(row.Status);   

    $("#GwtUpdate").val(row.Gwt);

    $("#CheckerUpdate").val(row.Checker);

}

//------------------------系统管理-->入库单管理结束--------------------------//

 

    3. 在Visual Studio 2017的“解决方案资源管理器”中,找到“ABP.TPLMS.Web.Mvc”项目中的Views目录下的InStock目录中的Index.cshtml文件。双击打开此文件,把以下代码删除或注释。

复制代码

   <div id="dg-detail-button">
             <a href="#" id="add" class="easyui-linkbutton" data-options="iconCls:'icon-add'" style="width:100px; "

 οnclick="ShowCargoInfo()">添加明细</a>
           <a href="#" id="addLoc" class="easyui-linkbutton" data-options="iconCls:'icon-add'" style="width:100px; "

 οnclick="SubGridAddRow()">添加库位</a>        

      <a href="#" id="del" class="easyui-linkbutton" data-options="iconCls:'icon-remove'" style="width:100px; ">删除</a>        
        </div>

复制代码

    4. 修改代码,如下图。

<td>创建时间:</td>
                        <td>
                            <input type="text" id="CreationTimeUpdate" name="UCreationTime" class="form-control input-sm" />

                        </td>

《代码库》1.0 主要功能简介 《代码库》是专为程序员设计的一个源码管理工具。她可以使编程变得更为有趣,降低您的重复劳动;她虽然不能立即提高您的编程技能,但能够让您在开发软件的过程中节省时间与金钱。在现代软件开发过程中,个人英雄式的完成一个从最底层开发的软件是极为困难的,因为您得为您的程序准备一切,但您愿意重写您以前写过的所有子程序吗。而实际上在开发的同时,可以将一些好的代码片断、算法加以摘录,并保存在《代码库》中,可以随时查阅、编辑您所收集的知识,并将能利用的代码加入您的程序中,提高开发速度。 《代码库》是一个基于文本格式的工具,采用树型目录进行的知识分类管理,您可以在她的帮助下清晰、准确的管理您收集的优秀代码。《代码库》使用自身的库数据结构, 并支持库形式的导出、导入,也支持文本文件的导出、导入,支持Windows粘贴板复制(支持TXT、RTF格式)、粘贴,功能丰富的编辑:支持Undo操作、显示行号、调整tab字符数、增加/减少缩进、设置当次缩进的字符数、换行显示,支持语法高亮显示、编辑修改(目前版本支持种语法标识:Plain Text, Object Pascal, ANSI C, Java, Visual Basic, eMail, IniFile, Html/JS/VBS , PL/SQL),支持功能强大的全库查找和搜索功能,提供打印及打印预览功能。《代码库》是专门为程序员进行设计的,因此我们知道什么是您最需要的,也会最好的东西带给您。 感谢David Brock的控件(TSyntaxMemo v3.00.36)以及Jordan Russell的控件(Toolbar2000 v3.0)。另感谢Wzy兄帮忙进行测试! 另外您可以随意复制、散发本软件,但是不得对本软件作任何修改。作者保留《代码库》的版权。本人将不定期的更新本软件,最新版的《代码库》请到www.csdn.net的共享软件栏目中寻找。 建议运行环境Windows98、Win2000、WinXP,内存64M以上。 如果您在使用中发现有什么bug或有什么建议,请及时通知我iRepository@citiz.net,本人将尽快回复。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值