コード例 #1
0
ファイル: Edit.ascx.cs プロジェクト: Novthirteen/yfkey-scms
    protected void ODS_Routing_Updating(object sender, ObjectDataSourceMethodEventArgs e)
    {
        Controls_TextBox     tbRegion       = ((Controls_TextBox)(this.FV_Routing.FindControl("tbRegion")));
        CodeMstrDropDownList ddlRoutingType = ((CodeMstrDropDownList)(this.FV_Routing.FindControl("ddlRoutingType")));
        Routing routing = (Routing)e.InputParameters[0];

        routing.Type   = ddlRoutingType.SelectedValue;
        routing.Region = TheRegionMgr.LoadRegion(tbRegion.Text);
    }
コード例 #2
0
ファイル: Edit.ascx.cs プロジェクト: Novthirteen/yfkey-scms
    private void UpdateView()
    {
        Routing              routing        = TheRoutingMgr.LoadRouting(RoutingCode);
        Controls_TextBox     tbRegion       = ((Controls_TextBox)(this.FV_Routing.FindControl("tbRegion")));
        CodeMstrDropDownList ddlRoutingType = ((CodeMstrDropDownList)(this.FV_Routing.FindControl("ddlRoutingType")));

        tbRegion.Text = routing.Region == null ? string.Empty : routing.Region.Code;
        ddlRoutingType.SelectedValue = routing.Type;
    }
コード例 #3
0
ファイル: Edit.ascx.cs プロジェクト: Novthirteen/yfkey-scms
 protected void FV_Employee_DataBound(object sender, EventArgs e)
 {
     if (EmployeeCode != null && EmployeeCode != string.Empty)
     {
         Employee             employee  = (Employee)((FormView)sender).DataItem;
         CodeMstrDropDownList ddlGender = (CodeMstrDropDownList)this.FV_Employee.FindControl("ddlGender");
         if (employee.Gender != null)
         {
             ddlGender.Text = employee.Gender;
         }
     }
 }
コード例 #4
0
ファイル: Edit.ascx.cs プロジェクト: Novthirteen/yfkey-scms
    protected void ODS_Employee_Updating(object sender, ObjectDataSourceMethodEventArgs e)
    {
        Employee employee = (Employee)e.InputParameters[0];

        if (employee != null)
        {
            CodeMstrDropDownList ddlGender = (CodeMstrDropDownList)this.FV_Employee.FindControl("ddlGender");
            employee.Gender         = ddlGender.SelectedValue;
            employee.Name           = employee.Name.Trim();
            employee.Department     = employee.Department.Trim();
            employee.Memo           = employee.Memo.Trim();
            employee.WorkGroup      = employee.WorkGroup.Trim();
            employee.Post           = employee.Post.Trim();
            employee.LastModifyDate = DateTime.Now;
            //employee.LastModifyUser = this.CurrentUser;
        }
    }