Beispiel #1
0
 /// <summary>
 /// Исправленно
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void odsTable_Updated(object sender, ObjectDataSourceStatusEventArgs e)
 {
     if ((int)e.ReturnValue >= 0)
     {
         int?      resultFile = null;
         panelFile uf         = (panelFile)fvTable.FindControl("panelFile");
         if (uf != null)
         {
             resultFile = uf.DelFile();
         }
     }
     if (DataUpdated != null)
     {
         DataUpdated(this, e);
     }
 }
Beispiel #2
0
    /// <summary>
    /// Править
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void odsTable_Updating(object sender, ObjectDataSourceMethodEventArgs e)
    {
        // Сначало сохраним файл если есть
        int?      resultFile = null;
        panelFile uf         = (panelFile)fvTable.FindControl("panelFile");

        if (uf != null)
        {
            resultFile = uf.SaveFile();
            if (resultFile < 0)
            {
                // Ошибка записи файла
                e.Cancel = true;
                return;
            }
        }
        e.InputParameters["IDProject"]               = this.idproject;
        e.InputParameters["IDTypeProject"]           = this.save_idtypeproject;
        e.InputParameters["IDImplementationProgram"] = this.save_idimplementationprogram;
        e.InputParameters["IDMenagerProject"]        = this.save_idmenagerproject;
        e.InputParameters["IDReplacementProject"]    = this.save_idreplacementmenagerproject;
        e.InputParameters["IDSection"]               = this.save_idsection;
        e.InputParameters["SAPCode"]            = this.save_sapcode;
        e.InputParameters["TypeString"]         = this.save_typestring;
        e.InputParameters["TypeStatus"]         = this.save_typestatus;
        e.InputParameters["Funding"]            = this.save_funding;
        e.InputParameters["Currency"]           = this.save_currency;
        e.InputParameters["FundingDescription"] = this.save_fundingdescription;
        e.InputParameters["AllocationFunds"]    = this.save_allocationfunds;
        e.InputParameters["LineOwner"]          = this.save_lineowner;
        e.InputParameters["Year"]             = this.save_year;
        e.InputParameters["Name"]             = this.save_name;
        e.InputParameters["NameEng"]          = this.save_nameeng;
        e.InputParameters["Description"]      = this.save_description;
        e.InputParameters["DescriptionEng"]   = this.save_descriptioneng;
        e.InputParameters["Contractor"]       = this.save_contractor;
        e.InputParameters["DateContractor"]   = this.save_datecontractor;
        e.InputParameters["Effect"]           = resultFile;
        e.InputParameters["IDOrder"]          = this.save_idorder;
        e.InputParameters["TypeConstruction"] = this.save_typeconstruction;
        e.InputParameters["Status"]           = this.save_status;
        e.InputParameters["OutResult"]        = this.outinfo;
        if (DataUpdating != null)
        {
            DataUpdating(this, e);
        }
    }
Beispiel #3
0
    /// <summary>
    /// Править
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void odsTable_Updating(object sender, ObjectDataSourceMethodEventArgs e)
    {
        // Сначало сохраним файл если есть
        //int? resultFile = null;
        panelFile uf = (panelFile)fvTable.FindControl("panelUnloadFile");

        if (uf != null)
        {
            this.idnewfile = uf.SaveFile();
            if (this.idnewfile < 0)
            {
                // Ошибка записи файла
                e.Cancel = true;
                return;
            }
        }
        // Сначало сохраним файл если есть
        //int? resultFileEng = null;
        panelFile ufe = (panelFile)fvTable.FindControl("panelUnloadFileEng");

        if (ufe != null)
        {
            this.idnewfileeng = ufe.SaveFile();
            if (this.idnewfileeng < 0)
            {
                // Ошибка записи файла
                e.Cancel = true;
                return;
            }
        }
        e.InputParameters["IDOrder"]     = this.idorder;
        e.InputParameters["IDTypeOrder"] = this.save_idtypeorder;
        e.InputParameters["NumOrder"]    = this.save_numorder;
        e.InputParameters["DateOrder"]   = this.save_dateorder;
        e.InputParameters["Order"]       = this.save_order;
        e.InputParameters["OrderEng"]    = this.save_ordereng;
        e.InputParameters["IDFile"]      = this.idnewfile;
        e.InputParameters["IDFileEng"]   = this.idnewfileeng;
        e.InputParameters["OutResult"]   = this.outinfo;
        if (DataUpdating != null)
        {
            DataUpdating(this, e);
        }
    }