Beispiel #1
0
 private void Init_theSchedule(Guid versionCode)
 {
     this._DtSchedule.Reset();
         this._DtSchedule.Columns.Add(new DataColumn("TaskCode", typeof(string)));
         this._DtSchedule.Columns.Add(new DataColumn("TaskName", typeof(string)));
         this._DtSchedule.Columns.Add(new DataColumn("ParentTaskCode", typeof(string)));
         this._DtSchedule.Columns.Add(new DataColumn("Quantity", typeof(decimal)));
         this._DtSchedule.Columns.Add(new DataColumn("SumCompleteQuantity", typeof(decimal)));
         this._DtSchedule.Columns.Add(new DataColumn("total", typeof(decimal)));
         this._DtSchedule.Columns.Add(new DataColumn("cctotal", typeof(decimal)));
         this._DtSchedule.Columns.Add(new DataColumn("IsHaveChild", typeof(string)));
         ArrayList allTemp = TemplatesAction.getAllTemp();
         for (int i = 0; i < allTemp.Count; i++)
         {
             DataRow dataRow = this._DtSchedule.NewRow();
             Templates templates = (Templates)allTemp[i];
             dataRow["TaskCode"] = templates.TemplatesCode;
             dataRow["TaskName"] = templates.TemplatesName;
             dataRow["ParentTaskCode"] = templates.ParentCode;
             dataRow["Quantity"] = BindBudgetAction.getTotalQuantity(this.hdnPrjGuid.Value, templates.TemplatesCode);
             dataRow["SumCompleteQuantity"] = BindBudgetAction.gettotalSumCompleteQuantity(this.hdnPrjGuid.Value, templates.TemplatesCode);
             dataRow["total"] = BindBudgetAction.getAlltotal(this.hdnPrjGuid.Value, templates.TemplatesCode);
             dataRow["cctotal"] = BindBudgetAction.getAllccTotal(this.hdnPrjGuid.Value, templates.TemplatesCode);
             this._DtSchedule.Rows.Add(dataRow);
         }
 }
Beispiel #2
0
    private void Init_theWork()
    {
        this.dtWork.Columns.Add(new DataColumn("ParentCode", typeof(string)));
        this.dtWork.Columns.Add(new DataColumn("TempCode", typeof(string)));
        this.dtWork.Columns.Add(new DataColumn("TempName", typeof(string)));
        this.dtWork.Columns.Add(new DataColumn("IsHaveChild", typeof(string)));
        ArrayList allTemp = TemplatesAction.getAllTemp();

        for (int i = 0; i < allTemp.Count; i++)
        {
            DataRow   dataRow   = this.dtWork.NewRow();
            Templates templates = (Templates)allTemp[i];
            dataRow["ParentCode"] = templates.ParentCode;
            dataRow["TempCode"]   = templates.TemplatesCode;
            dataRow["TempName"]   = templates.TemplatesName;
            this.dtWork.Rows.Add(dataRow);
        }
    }