コード例 #1
0
        private Boolean UpdateCostumeModelLimitTable(string searchCondition, string method)
        {
            COSTUME_MODEL_LIMIT instance = m_db.Find <COSTUME_MODEL_LIMIT>("MODEL_NAME", searchCondition);
            int r = 0;

            if (instance.MODEL_NAME.IsEffective())
            {
                if (instance.METHOD_NAME.Contains(method))
                {
                    return(false);
                }
                else
                {
                    instance.METHOD_NAME = instance.METHOD_NAME + "&" + method;
                    r = m_db.Update(instance, "MODEL_NAME");
                    for (int i = 0; i < m_relations.Count; i++)
                    {
                        if (m_relations[i].MODEL_NAME == searchCondition)
                        {
                            m_relations[i].METHOD_NAME += "&" + method;
                        }
                    }
                }
            }
            return(r > 0);
        }
コード例 #2
0
 private void m_btnSave_Click(object sender, EventArgs e)
 {
     m_info.FDJGS     = m_FDJGS.Text;
     m_info.FDJH      = m_FDJH.Text;
     m_info.FDJZZCS   = m_FDJSCQY.Text;
     m_info.FDJXH     = m_FDJXH.Text;
     m_info.PQHCLZZDH = m_HCLLX.Text;
     m_info.PQHCLZZ   = m_HCLXH.Text;
     m_info.GYFS      = m_GYFS.Text;
     m_db.Update(m_info, "JCLSH");
 }