Esempio n. 1
0
    public void GetCBS()
    {
        this.costAccountList = CostAccounting.GetByD();
        CostAccounting item = CostAccounting.Create(" ", " ", " ", " ", " ");

        this.costAccountList.Insert(0, item);
    }
Esempio n. 2
0
    protected CostAccounting GetCostAcc()
    {
        string id = string.Empty;

        if (string.Compare(base.Request["action"], "add", true) == 0)
        {
            id = Guid.NewGuid().ToString();
        }
        else
        {
            id = base.Request["parent"];
        }
        string name          = this.txtCBSName.Text.Trim();
        string selectedValue = this.ddlType.SelectedValue;
        string note          = this.txtNote.Text.Trim();
        string text          = this.txtCBSCode.Text;

        return(CostAccounting.Create(id, name, text, selectedValue, note));
    }